mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Logic added to handle when a cloned user is imported via LDAP. (#9429)
This commit is contained in:
parent
3824a50e8b
commit
9cf5fbd675
|
@ -106,7 +106,7 @@
|
|||
<div class="form-group {{ $errors->has('username') ? 'has-error' : '' }}">
|
||||
<label class="col-md-3 control-label" for="username">{{ trans('admin/users/table.username') }}</label>
|
||||
<div class="col-md-6{{ (\App\Helpers\Helper::checkIfRequired($user, 'username')) ? ' required' : '' }}">
|
||||
@if ($user->ldap_import!='1')
|
||||
@if ($user->ldap_import!='1' || str_contains(Route::currentRouteName(), 'clone'))
|
||||
<input
|
||||
class="form-control"
|
||||
type="text"
|
||||
|
@ -137,7 +137,7 @@
|
|||
{{ trans('admin/users/table.password') }}
|
||||
</label>
|
||||
<div class="col-md-6{{ (\App\Helpers\Helper::checkIfRequired($user, 'password')) ? ' required' : '' }}">
|
||||
@if ($user->ldap_import!='1')
|
||||
@if ($user->ldap_import!='1' || str_contains(Route::currentRouteName(), 'clone') )
|
||||
<input
|
||||
type="password"
|
||||
name="password"
|
||||
|
@ -161,7 +161,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
@if ($user->ldap_import!='1')
|
||||
@if ($user->ldap_import!='1' || str_contains(Route::currentRouteName(), 'clone'))
|
||||
<!-- Password Confirm -->
|
||||
<div class="form-group {{ $errors->has('password_confirmation') ? 'has-error' : '' }}">
|
||||
<label class="col-md-3 control-label" for="password_confirmation">
|
||||
|
|
Loading…
Reference in a new issue