Browse Source

Skip confirmation for inactive users

pull/580/head
baarkerlounger 3 years ago
parent
commit
74b00d1bf5
  1. 4
      app/models/user.rb

4
app/models/user.rb

@ -76,6 +76,10 @@ class User < ApplicationRecord
CONFIRMABLE_TEMPLATE_ID CONFIRMABLE_TEMPLATE_ID
end end
def skip_confirmation!
!user.active?
end
def need_two_factor_authentication?(_request) def need_two_factor_authentication?(_request)
support? support?
end end

Loading…
Cancel
Save