0
0
Fork 0

Adapt 2FA changes to glitch-soc's theming system

This commit is contained in:
Thibaut Girka 2020-08-30 17:26:18 +02:00
parent a340e653df
commit a68ec50e4e
6 changed files with 7 additions and 5 deletions

View file

@ -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')