Skip to content

Commit

Permalink
ltb-project#126: Incorrect old password throws an warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
abpai94 committed Aug 13, 2024
1 parent b41bd1e commit d475019
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions htdocs/resetpassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@
}

}
else {
$result = "passwordinvalid";
}
}

if ($audit_log_file) {
Expand Down
9 changes: 6 additions & 3 deletions templates/display.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,12 @@
<div class="card-body">

<form id="resetpassword" method="post" action="index.php?page=resetpassword">
{if $resetpasswordresult eq 'oldpasswordrequired'}
<div class="alert alert-warning"><i class="fa fa-fw fa-exclamation-triangle"></i> {$msg_oldpasswordrequired}</div>
{/if}
{if $resetpasswordresult eq 'passwordinvalid'}
<div class="alert alert-danger"><i class="fa fa-fw fa-exclamation-triangle"></i> {$msg_passwordinvalid}</div>
{/if}
{if $resetpasswordresult eq 'oldpasswordrequired'}
<div class="alert alert-warning"><i class="fa fa-fw fa-exclamation-triangle"></i> {$msg_oldpasswordrequired}</div>
{/if}
{if $resetpasswordresult eq 'passwordrequired'}
<div class="alert alert-warning"><i class="fa fa-fw fa-exclamation-triangle"></i> {$msg_passwordrequired}</div>
{/if}
Expand Down

0 comments on commit d475019

Please sign in to comment.