mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
change the appearance of the 2FA badge
This commit is contained in:
parent
45e3d2801d
commit
a179d032c2
1 changed files with 6 additions and 2 deletions
|
@ -34,10 +34,14 @@ h1 Users
|
|||
|
||||
= cond do
|
||||
- user.otp_required_for_login ->
|
||||
span.banner__2fa.success 2FA
|
||||
span.banner__2fa.success
|
||||
i.fas.fa-check>
|
||||
' 2FA
|
||||
|
||||
- user.role != "user" and !user.otp_required_for_login ->
|
||||
span.banner__2fa.danger 1FA
|
||||
span.banner__2fa.danger
|
||||
i.fas.fa-times>
|
||||
' 2FA
|
||||
|
||||
- true ->
|
||||
|
||||
|
|
Loading…
Reference in a new issue