summaryrefslogtreecommitdiffstats
path: root/token.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-04-24 16:24:43 +0200
committergerv%gerv.net <>2002-04-24 16:24:43 +0200
commit05d101e58b400b1a52adcc86515b5442b85cd2f5 (patch)
treeded36788873d147ce2a62bd76239e0e99974c621 /token.cgi
parentc29a6dcb565731ef6757a625b7374e7ff46d417c (diff)
downloadbugzilla-05d101e58b400b1a52adcc86515b5442b85cd2f5.tar.gz
bugzilla-05d101e58b400b1a52adcc86515b5442b85cd2f5.tar.xz
Bug 138588 - change to use new template structure. Patch by gerv, r=myk, afranke.
Diffstat (limited to 'token.cgi')
-rwxr-xr-xtoken.cgi25
1 files changed, 9 insertions, 16 deletions
diff --git a/token.cgi b/token.cgi
index e8fb3f90f..e1ae0b35b 100755
--- a/token.cgi
+++ b/token.cgi
@@ -178,8 +178,7 @@ sub requestChangePassword {
print "Content-Type: text/html\n\n";
$template->process("global/message.html.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error())
- && exit;
+ || ThrowTemplateError($template->error());
}
sub confirmChangePassword {
@@ -187,9 +186,8 @@ sub confirmChangePassword {
$vars->{'token'} = $::token;
print "Content-Type: text/html\n\n";
- $template->process("admin/change-password.html.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error())
- && exit;
+ $template->process("account/password/set-forgotten-password.html.tmpl", $vars)
+ || ThrowTemplateError($template->error());
}
sub cancelChangePassword {
@@ -200,8 +198,7 @@ sub cancelChangePassword {
print "Content-Type: text/html\n\n";
$template->process("global/message.html.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error())
- && exit;
+ || ThrowTemplateError($template->error());
}
sub changePassword {
@@ -229,8 +226,7 @@ sub changePassword {
print "Content-Type: text/html\n\n";
$template->process("global/message.html.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error())
- && exit;
+ || ThrowTemplateError($template->error());
}
sub confirmChangeEmail {
@@ -240,9 +236,8 @@ sub confirmChangeEmail {
$vars->{'title'} = "Confirm Change Email";
$vars->{'token'} = $::token;
- $template->process("token/confirmemail.html.tmpl", $vars)
- || &::DisplayError("Template process failed: " . $template->error())
- && exit;
+ $template->process("account/email/confirm.html.tmpl", $vars)
+ || ThrowTemplateError($template->error());
}
sub changeEmail {
@@ -287,8 +282,7 @@ sub changeEmail {
$vars->{'message'} = "Your Bugzilla login has been changed.";
$template->process("global/message.html.tmpl", $vars)
- || &::DisplayError("Template process failed: " . $template->error())
- && exit;
+ || ThrowTemplateError($template->error());
}
sub cancelChangeEmail {
@@ -336,7 +330,6 @@ sub cancelChangeEmail {
$vars->{'title'} = "Cancel Request to Change Email Address";
$template->process("global/message.html.tmpl", $vars)
- || &::DisplayError("Template process failed: " . $template->error())
- && exit;
+ || ThrowTemplateError($template->error());
}