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
end
def skip_confirmation!
!user.active?
end
def need_two_factor_authentication?(_request)
support?
end

Loading…
Cancel
Save