Browse Source

send confirmation if user is unconfirmed on password reset

CLDC-4033-improve-flow-for-unconfirmed-users
Samuel 3 months ago committed by Samuel Young
parent
commit
d29e25350d
  1. 8
      app/models/user.rb

8
app/models/user.rb

@ -358,6 +358,14 @@ class User < ApplicationRecord
end end
end end
def send_reset_password_instructions
if confirmed?
super
else
send_confirmation_instructions
end
end
protected protected
# Checks whether a password is needed or not. For validations only. # Checks whether a password is needed or not. For validations only.

Loading…
Cancel
Save