however, your email address and name will be removed in most locations.
We are not able to remove your details that are part of comment text.
</p>
+ <p>
+ <em>Warning:</em> You will need to enter your current password above to
+ confirm this action.
+ </p>
<p>
<input type="checkbox" id="account-disable-confirm">
I acknowledge that my account will not be functional after it has been
sub DisableAccount {
my $user = Bugzilla->user;
+ my $cgi = Bugzilla->cgi;
+
+ my $oldpassword = $cgi->param('old_password');
+ my $oldcryptedpwd = $user->cryptpassword;
+ $oldcryptedpwd || ThrowCodeError("unable_to_retrieve_password");
+
+ if (bz_crypt($oldpassword, $oldcryptedpwd) ne $oldcryptedpwd) {
+ ThrowUserError("old_password_incorrect");
+ }
my $new_login = 'u' . $user->id . '@disabled.tld';