Skip to content

Commit

Permalink
Merge pull request #16107 from marcusmoore/chore/migrate-password-helper
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe authored Jan 22, 2025
2 parents cb25d0f + c3d17c5 commit d696ed8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/views/settings/ldap.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
{{ Form::label('ldap_pword', trans('admin/settings/general.ldap_pword')) }}
</div>
<div class="col-md-8">
{{ Form::password('ldap_pword', ['class' => 'form-control', 'autocomplete' => 'off', 'onfocus' => "this.removeAttribute('readonly');", ' readonly']) }}
<input class="form-control" type="password" name="ldap_pword" id="ldap_pword" value="" autocomplete="off" onfocus="this.removeAttribute('readonly');" readonly>
@error('ldap_pword')
<span class="alert-msg">
<x-icon type="x" />
Expand Down
4 changes: 2 additions & 2 deletions resources/views/setup/user.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@
<!-- password -->
<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'password')) ? ' required' : '' }} {{ $errors->has('password') ? 'error' : '' }}">
{{ Form::label('password', trans('admin/users/table.password')) }}
{{ Form::password('password', array('class' => 'form-control','required' => true)) }}
<input class="form-control" type="password" name="password" id="password" value="" required>
{!! $errors->first('password', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
</div>

<!-- password confirm -->
<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'password')) ? ' required' : '' }} {{ $errors->has('password_confirm') ? 'error' : '' }}">
{{ Form::label('password_confirmation', trans('admin/users/table.password_confirm')) }}
{{ Form::password('password_confirmation', array('class' => 'form-control','required' => true)) }}
<input class="form-control" type="password" name="password_confirmation" id="password_confirmation" value="" required>
{!! $errors->first('password_confirmation', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
</div>
</div>
Expand Down

0 comments on commit d696ed8

Please sign in to comment.