Skip to content

Commit

Permalink
FOUR-13085 A user cannot configure in their profile how to receive th…
Browse files Browse the repository at this point in the history
…eir OTP - Observation by made Wendy solved
  • Loading branch information
julceslauhub authored and caleeli committed Jan 12, 2024
1 parent 8452b96 commit 22239a2
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions resources/views/shared/users/sidebar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,6 @@
v-for="(error, index) in errors.password">@{{error}}</div>
</div>

@if (config('password-policies.2fa_enabled', false) && count($global2FAEnabled) > 0)
<div class="form-group">
{!! Form::label('preferences_2fa', __('Two Factor Authentication')) !!}
<b-form-checkbox-group
id="preferences_2fa"
v-model="formData.preferences_2fa"
:options="global2FAEnabled"
:state="state2FA"
switches
required
>
</b-form-checkbox-group>
</div>
@endif

@endif
@cannot('edit-user-and-password')
<div class="form-group">
Expand All @@ -97,6 +82,21 @@
</div>
</div>
@endif

@if (config('password-policies.2fa_enabled', false) && count($global2FAEnabled) > 0)
<div class="form-group">
{!! Form::label('preferences_2fa', __('Two Factor Authentication')) !!}
<b-form-checkbox-group
id="preferences_2fa"
v-model="formData.preferences_2fa"
:options="global2FAEnabled"
:state="state2FA"
switches
required
>
</b-form-checkbox-group>
</div>
@endif
</div>

@isset($addons)
Expand Down

0 comments on commit 22239a2

Please sign in to comment.