Skip to content

Commit

Permalink
[BP] Remove old password field for admins (#7417)
Browse files Browse the repository at this point in the history
Using an administrator user, the old password field can be left empty.
Removing it as it's not required when and admin reset the password of other user.
  • Loading branch information
josegar74 authored and juanluisrp committed Oct 10, 2023
1 parent 9e4db43 commit 0ca42bb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ <h3 data-translate="">UserAdmin</h3>
<form id="gn-password-reset" class="form-horizontal" name="gnPasswordReset">
<input type="hidden" name="_csrf" value="{{csrf}}" />
<div
data-ng-if="!user.isAdministratorOrMore()"
class="form-group"
data-ng-class="gnPasswordReset.passwordOld.$error.required ? 'has-error' : ''"
>
Expand Down

0 comments on commit 0ca42bb

Please sign in to comment.