-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
confirmation sent with sign in and sign out #23
Comments
reverting back to device-neo4j (2.0.0) while neo4j and neo4j-core are at the latest version, I don't seem to have this problem.
|
Interesting, I'm not sure! I don't see anything obvious in the changes to 2.0.1 and 2.0.2. Here they are: Can you try 2.0.1 to help narrow it down? |
Rails 5.1.1 I'm having the same problem and I see nothing wrong with the source code. |
I believe I found the problem, it is in the file "devise / lib / models / confirmable.rb" module Confirmable
extend ActiveSupport::Concern
included do
before_create :generate_confirmation_token, if: :confirmation_required?
after_create :send_on_create_confirmation_instructions, if: :send_confirmation_notification?
before_update :postpone_email_change_until_confirmation_and_regenerate_confirmation_token, if: :postpone_email_change?
after_update :send_reconfirmation_instructions, if: :reconfirmation_required?
end While version 4.3 with the following code does not work correctly: module Confirmable
extend ActiveSupport::Concern
included do
before_create :generate_confirmation_token, if: :confirmation_required?
after_create :skip_reconfirmation!, if: :send_confirmation_notification?
if respond_to?(:after_commit) # ActiveRecord
after_commit :send_on_create_confirmation_instructions, on: :create, if: :send_confirmation_notification?
after_commit :send_reconfirmation_instructions, on: :update, if: :reconfirmation_required?
else # Mongoid
after_create :send_on_create_confirmation_instructions, if: :send_confirmation_notification?
after_update :send_reconfirmation_instructions, if: :reconfirmation_required?
end
before_update :postpone_email_change_until_confirmation_and_regenerate_confirmation_token, if: :postpone_email_change?
end
|
I updated device-neo4j to 2.0.2 along with the latest versions of neo4j and neo4j-core in order to migrate to neo4j 3.0.1.
After the update, I started getting confirmation emails for every sign in and sign out.
Note that I had to add
property :remember_token
to get the program work and I can check on the rails console that my user is confirmed.What do you think is causing this behavior?
Thanks in advance
The text was updated successfully, but these errors were encountered: