diff options
author | justdave%syndicomm.com <> | 2004-03-18 11:57:04 +0000 |
---|---|---|
committer | justdave%syndicomm.com <> | 2004-03-18 11:57:04 +0000 |
commit | 3d59b2bd807ec35c511fd76df11b2cbb61289242 (patch) | |
tree | f3071da3563a70dd4c88ea0fa5505eef4baf4385 /token.cgi | |
parent | 962c6c28c25c354d7b3757f1b3cb3665cbde14b0 (diff) | |
download | bugs-3d59b2bd807ec35c511fd76df11b2cbb61289242.tar bugs-3d59b2bd807ec35c511fd76df11b2cbb61289242.tar.gz bugs-3d59b2bd807ec35c511fd76df11b2cbb61289242.tar.bz2 bugs-3d59b2bd807ec35c511fd76df11b2cbb61289242.tar.xz bugs-3d59b2bd807ec35c511fd76df11b2cbb61289242.zip |
Bug 192516: Moving the loose .pm files into the Bugzilla directory, where they belong. These files pre-date the Bugzilla directory, and would have gone there had it existed at the time. The four files in question were copied on the CVS server to preserve CVS history in the files. This checkin deletes them from the old location and modifies everything else to know where they are now.
r= myk, gerv
a= justdave
Diffstat (limited to 'token.cgi')
-rwxr-xr-x | token.cgi | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -41,9 +41,9 @@ require "CGI.pl"; ConnectToDatabase(); quietly_check_login('permit_anonymous'); -# Use the "Token" module that contains functions for doing various +# Use the "Bugzilla::Token" module that contains functions for doing various # token-related tasks. -use Token; +use Bugzilla::Token; use Bugzilla::User; @@ -72,7 +72,7 @@ if ($cgi->param('t')) { } - Token::CleanTokenTable(); + Bugzilla::Token::CleanTokenTable(); # Make sure the token exists in the database. SendSQL( "SELECT tokentype FROM tokens WHERE token = $::quotedtoken" ); @@ -80,17 +80,17 @@ if ($cgi->param('t')) { # Make sure the token is the correct type for the action being taken. if ( grep($::action eq $_ , qw(cfmpw cxlpw chgpw)) && $tokentype ne 'password' ) { - Token::Cancel($::token, "wrong_token_for_changing_passwd"); + Bugzilla::Token::Cancel($::token, "wrong_token_for_changing_passwd"); ThrowUserError("wrong_token_for_changing_passwd"); } if ( ($::action eq 'cxlem') && (($tokentype ne 'emailold') && ($tokentype ne 'emailnew')) ) { - Token::Cancel($::token, "wrong_token_for_cancelling_email_change"); + Bugzilla::Token::Cancel($::token, "wrong_token_for_cancelling_email_change"); ThrowUserError("wrong_token_for_cancelling_email_change"); } if ( grep($::action eq $_ , qw(cfmem chgem)) && ($tokentype ne 'emailnew') ) { - Token::Cancel($::token, "wrong_token_for_confirming_email_change"); + Bugzilla::Token::Cancel($::token, "wrong_token_for_confirming_email_change"); ThrowUserError("wrong_token_for_confirming_email_change"); } } @@ -176,7 +176,7 @@ sub confirmChangePassword { sub cancelChangePassword { $vars->{'message'} = "password_change_canceled"; - Token::Cancel($::token, $vars->{'message'}); + Bugzilla::Token::Cancel($::token, $vars->{'message'}); print $cgi->header(); $template->process("global/message.html.tmpl", $vars) @@ -308,7 +308,7 @@ sub cancelChangeEmail { $vars->{'old_email'} = $old_email; $vars->{'new_email'} = $new_email; - Token::Cancel($::token, $vars->{'message'}); + Bugzilla::Token::Cancel($::token, $vars->{'message'}); SendSQL("LOCK TABLES tokens WRITE"); SendSQL("DELETE FROM tokens |