The cookie that was remembering your login is now gone. You will be
prompted for a login the next time it is required.
+ [% ELSIF message_tag == "login_changed" %]
+ [% title = "Bugzilla Login Changed" %]
+ Your Bugzilla login has been changed.
+
+ [% ELSIF message_tag == "password_changed" %]
+ [% title = "Password Changed" %]
+ Your password has been changed.
+
+ [% ELSIF message_tag == "password_change_canceled"
+ [% title = "Cancel Request to Change Password" %]
+ Your request has been cancelled.
+
+ [% ELSIF message_tag == "password_change_request" %]
+ [% title = "Request to Change Password" %]
+ A token for changing your password has been emailed to you.
+ Follow the instructions in that email to change your password.
+
[% ELSE %]
[%# Cope with legacy calling convention, where "message" was the string
# to print.
sub requestChangePassword {
Token::IssuePasswordToken($::FORM{'loginname'});
- $vars->{'title'} = "Request to Change Password";
- $vars->{'message'} = "A token for changing your password has been
- emailed to you. Follow the instructions in
- that email to change your password.";
+ $vars->{'message'} = "password_change_request";
print "Content-Type: text/html\n\n";
$template->process("global/message.html.tmpl", $vars)
}
sub confirmChangePassword {
- $vars->{'title'} = "Change Password";
$vars->{'token'} = $::token;
print "Content-Type: text/html\n\n";
sub cancelChangePassword {
Token::Cancel($::token, "user requested cancellation");
- $vars->{'title'} = "Cancel Request to Change Password";
- $vars->{'message'} = "Your request has been cancelled.";
+ $vars->{'message'} = "password_change_canceled";
print "Content-Type: text/html\n\n";
$template->process("global/message.html.tmpl", $vars)
InvalidateLogins($userid);
- $vars->{'title'} = "Password Changed";
- $vars->{'message'} = "Your password has been changed.";
+ $vars->{'message'} = "password_changed";
print "Content-Type: text/html\n\n";
$template->process("global/message.html.tmpl", $vars)
# Return HTTP response headers.
print "Content-Type: text/html\n\n";
- $vars->{'title'} = "Confirm Change Email";
$vars->{'token'} = $::token;
$template->process("account/email/confirm.html.tmpl", $vars)
# Let the user know their email address has been changed.
- $vars->{'title'} = "Bugzilla Login Changed";
- $vars->{'message'} = "Your Bugzilla login has been changed.";
+ $vars->{'message'} = "login_changed";
$template->process("global/message.html.tmpl", $vars)
|| ThrowTemplateError($template->error());