mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Updated 2FA to non-icheck
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
b4df9eb586
commit
790f9c2fc4
|
@ -488,17 +488,21 @@
|
||||||
@if ($snipeSettings->two_factor_enabled!='')
|
@if ($snipeSettings->two_factor_enabled!='')
|
||||||
@if ($snipeSettings->two_factor_enabled=='1')
|
@if ($snipeSettings->two_factor_enabled=='1')
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-3 control-label">
|
<div class="col-md-9 col-md-offset-3">
|
||||||
{{ Form::label('two_factor_optin', trans('admin/settings/general.two_factor')) }}
|
|
||||||
</div>
|
|
||||||
<div class="col-md-9">
|
|
||||||
@if (config('app.lock_passwords'))
|
@if (config('app.lock_passwords'))
|
||||||
<div class="icheckbox disabled">
|
|
||||||
{{ Form::checkbox('two_factor_optin', '1', Request::old('two_factor_optin', $user->two_factor_optin),['class' => 'minimal', 'disabled'=>'disabled']) }} {{ trans('admin/settings/general.two_factor_enabled_text') }}
|
<label class="form-control form-control--disabled" for="two_factor_optin">
|
||||||
<p class="help-block">{{ trans('general.feature_disabled') }}</p>
|
<input type="checkbox" value="1" name="two_factor_optin" {{ (old('two_factor_optin', $user->two_factor_optin)) == '1' ? ' checked="checked"' : '' }} aria-label="two_factor_optin" disabled>
|
||||||
</div>
|
{{ trans('admin/settings/general.two_factor') }}
|
||||||
|
</label>
|
||||||
|
|
||||||
@else
|
@else
|
||||||
{{ Form::checkbox('two_factor_optin', '1', Request::old('two_factor_optin', $user->two_factor_optin),['class' => 'minimal']) }} {{ trans('admin/settings/general.two_factor_enabled_text') }}
|
|
||||||
|
<label class="form-control" for="two_factor_optin">
|
||||||
|
<input type="checkbox" value="1" name="two_factor_optin" {{ (old('two_factor_optin', $user->two_factor_optin)) == '1' ? ' checked="checked"' : '' }} aria-label="two_factor_optin">
|
||||||
|
{{ trans('admin/settings/general.two_factor') }}
|
||||||
|
</label>
|
||||||
<p class="help-block">{{ trans('admin/users/general.two_factor_admin_optin_help') }}</p>
|
<p class="help-block">{{ trans('admin/users/general.two_factor_admin_optin_help') }}</p>
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
|
|
Loading…
Reference in a new issue