Skip to content

Commit

Permalink
Stil allow new user creation
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Feb 24, 2015
1 parent de94311 commit 4340d50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/backend/users/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
@endif
</label>
<div class="col-md-5">
<input type="password" name="password" class="form-control" id="password" value="" {{ (Config::get('app.lock_passwords') ? ' disabled' : '') }}>
<input type="password" name="password" class="form-control" id="password" value="" {{ ((Config::get('app.lock_passwords') && ($user->id)) ? ' disabled' : '') }}>
{{ $errors->first('password', '<span class="alert-msg">:message</span>') }}
</div>
</div>
Expand All @@ -147,8 +147,8 @@
@endif
</label>
<div class="col-md-5">
<input type="password" name="password_confirm" id="password_confirm" class="form-control" value="" {{ (Config::get('app.lock_passwords') ? ' disabled' : '') }}>
@if (Config::get('app.lock_passwords'))
<input type="password" name="password_confirm" id="password_confirm" class="form-control" value="" {{ ((Config::get('app.lock_passwords') && ($user->id)) ? ' disabled' : '') }}>
@if (Config::get('app.lock_passwords') && ($user->id))
<p class="help-block">@lang('admin/users/table.lock_passwords')</p>
@endif
{{ $errors->first('password_confirm', '<span class="alert-msg">:message</span>') }}
Expand Down

0 comments on commit 4340d50

Please sign in to comment.