summaryrefslogtreecommitdiffstats
path: root/reset_password.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'reset_password.cgi')
-rwxr-xr-xreset_password.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/reset_password.cgi b/reset_password.cgi
index fb095c27d..3b0e36849 100755
--- a/reset_password.cgi
+++ b/reset_password.cgi
@@ -25,6 +25,8 @@ my $user = Bugzilla->login(LOGIN_REQUIRED);
my $template = Bugzilla->template;
my $dbh = Bugzilla->dbh;
+ThrowUserError('reset_password_denied') unless $user->password_change_required;
+
if ($cgi->param('do_save')) {
my $token = $cgi->param('token');
check_token_data($token, 'reset_password');