Skip to content

Commit

Permalink
Remove old password field for admins (geonetwork#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 Oct 10, 2023
1 parent d73e099 commit be62aec
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 be62aec

Please sign in to comment.