@ -5,9 +5,10 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
yieldresourceifblock_given?
ifresource.errors.empty?
# previously we reset sign_in_count to indicate that a user was deactivated and so needs to reset their password on confirming their email post reactivation.
# now we have a specific flag for this as resetting sign in count was difficult for auditing.
# though for backwards compatability we need to ensure previous users with a reset sign in count still will see the password reset screen
# previously we reset sign_in_count on deactivation and had only the .zero? check here.
# this would force a password reset both if it was your very first log in, and on your first login after reactivation.
# now we have a specific flag for the latter case as resetting sign_in_count was difficult for auditing.
# note that some deactivated users will have a sign_in_count of 0 and not have this flag set if they were deactivated before we made this change.