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 f020ca9 commit da47c62
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,9 @@ <h3 data-translate="">UserAdmin</h3>
<div class="modal-body">
<form id="gn-password-reset" class="form-horizontal" name="gnPasswordReset">
<input type="hidden" name="_csrf" value="{{csrf}}"/>
<div class="form-group"
<div
data-ng-if="!user.isAdministratorOrMore()"
class="form-group"
data-ng-class="gnPasswordReset.passwordOld.$error.required ? 'has-error' : ''">
<label class="control-label col-sm-3" data-translate="">passwordOld</label>
<div class="col-sm-9">
Expand Down

0 comments on commit da47c62

Please sign in to comment.