diff --git a/app/models/user.rb b/app/models/user.rb index 5e8f0f627..f8b91031b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -76,6 +76,10 @@ class User < ApplicationRecord CONFIRMABLE_TEMPLATE_ID end + def skip_confirmation! + !user.active? + end + def need_two_factor_authentication?(_request) support? end