File tree 1 file changed +5
-4
lines changed
resources/views/v1/profile
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 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 >
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' | _ }}" />
You can’t perform that action at this time.
0 commit comments