Skip to content

Commit 03a1601

Browse files
committed
Fix.
1 parent edfff4e commit 03a1601

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: resources/views/v1/profile/index.twig

+5-4
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<div class="box box-default">
108108
<div class="box-body">
109109
<p class="text-info">{{ 'pref_two_factor_auth_help'|_ }}</p>
110-
{% if enabled2FA == false %}
110+
{% if enabled2FA == true %}
111111
<p class="text-info">
112112
{{ trans_choice('firefly.pref_two_factor_backup_code_count', mfaBackupCount) }}
113113
</p>
@@ -116,10 +116,11 @@
116116
<a class="btn btn-info" href="{{ route('profile.code') }}">
117117
<span class="fa fa-recycle"></span>
118118
{{ 'pref_two_factor_auth_reset_code'|_ }}</a>
119-
<a class="btn btn-danger" href="{{ route('profile.delete-code') }}">
120-
<span class="fa fa-trash"></span>
121-
{{ 'pref_two_factor_auth_disable_2fa'|_ }}</a>
122119
</div>
120+
<form method="post" action="{{ route('profile.delete-code') }}">
121+
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
122+
<input class="btn btn-danger" style="margin-top:20px;" type="submit" name="submit" value="{{ 'pref_two_factor_auth_disable_2fa'|_ }}" />
123+
</form>
123124
<form method="post" action="{{ route('profile.new-backup-codes') }}">
124125
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
125126
<input class="btn btn-default" style="margin-top:20px;" type="submit" name="submit" value="{{ 'pref_two_factor_new_backup_codes'|_ }}" />

0 commit comments

Comments
 (0)