Adapt 2FA changes to glitch-soc's theming system
This commit is contained in:
parent
a340e653df
commit
a68ec50e4e
6 changed files with 7 additions and 5 deletions
|
@ -85,6 +85,10 @@ module Settings
|
|||
|
||||
private
|
||||
|
||||
def set_pack
|
||||
use_pack 'auth'
|
||||
end
|
||||
|
||||
def require_otp_enabled
|
||||
unless current_user.otp_enabled?
|
||||
flash[:error] = t('webauthn_credentials.otp_required')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue