Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
JC5 committed Nov 24, 2021
1 parent d98ca0b commit edfff4e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions resources/views/v1/profile/index.twig
Expand Up @@ -107,7 +107,7 @@
<div class="box box-default">
<div class="box-body">
<p class="text-info">{{ 'pref_two_factor_auth_help'|_ }}</p>
{% if enabled2FA == true %}
{% if enabled2FA == false %}
<p class="text-info">
{{ trans_choice('firefly.pref_two_factor_backup_code_count', mfaBackupCount) }}
</p>
Expand All @@ -116,13 +116,14 @@
<a class="btn btn-info" href="{{ route('profile.code') }}">
<span class="fa fa-recycle"></span>
{{ 'pref_two_factor_auth_reset_code'|_ }}</a>
<a class="btn btn-default" href="{{ route('profile.new-backup-codes') }}">
<span class="fa fa-star"></span>
{{ 'pref_two_factor_new_backup_codes'|_ }}</a>
<a class="btn btn-danger" href="{{ route('profile.delete-code') }}">
<span class="fa fa-trash"></span>
{{ 'pref_two_factor_auth_disable_2fa'|_ }}</a>
</div>
<form method="post" action="{{ route('profile.new-backup-codes') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
<input class="btn btn-default" style="margin-top:20px;" type="submit" name="submit" value="{{ 'pref_two_factor_new_backup_codes'|_ }}" />
</form>
{% else %}
<p>
<form action="{{ route('profile.enable2FA') }}" method="post">
Expand Down

0 comments on commit edfff4e

Please sign in to comment.