From 37722eca39874bb6abdcd120e3e458bd62dea62b Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Wed, 5 Jul 2017 11:43:18 -0700 Subject: Bug 1377933 - Remove trailing whitespace from all perl files --- token.cgi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'token.cgi') diff --git a/token.cgi b/token.cgi index 136e76137..9cfe37b57 100755 --- a/token.cgi +++ b/token.cgi @@ -159,7 +159,7 @@ if ($action eq 'reqpw') { verify_mfa_login($token); } elsif ($action eq 'mfa_p') { verify_mfa_password($token); -} else { +} else { ThrowUserError('unknown_action', {action => $action}); } @@ -275,13 +275,13 @@ sub changeEmail { if(lc($cgi->param('email')) ne lc($old_email)) { ThrowUserError("email_confirmation_failed"); } - # The new email address should be available as this was + # The new email address should be available as this was # confirmed initially so cancel token if it is not still available if (! is_available_username($new_email,$old_email)) { $vars->{'email'} = $new_email; # Needed for Bugzilla::Token::Cancel's mail Bugzilla::Token::Cancel($token, "account_exists", $vars); ThrowUserError("account_exists", { email => $new_email } ); - } + } # Update the user's login name in the profiles table and delete the token # from the tokens table. @@ -330,7 +330,7 @@ sub cancelChangeEmail { my $actualemail = $dbh->selectrow_array( q{SELECT login_name FROM profiles WHERE userid = ?}, undef, $userid); - + # check to see if it has been altered if($actualemail ne $old_email) { # XXX - This is NOT safe - if A has change to B, another profile @@ -348,8 +348,8 @@ sub cancelChangeEmail { $user->derive_regexp_groups; $vars->{'message'} = "email_change_canceled_reinstated"; - } - } + } + } else { $vars->{'message'} = 'email_change_canceled' } @@ -397,7 +397,7 @@ sub confirm_create_account { $cgi->delete('passwd1', 'passwd2'); my $otheruser = Bugzilla::User->create({ - login_name => $login_name, + login_name => $login_name, realname => scalar $cgi->param('realname'), cryptpassword => $password}); -- cgit v1.2.3-24-g4f1b