Class: EmailAuthenticationsController
- Inherits:
-
NoPassword::EmailAuthenticationsController
- Object
- ApplicationController
- NoPassword::EmailAuthenticationsController
- EmailAuthenticationsController
- Defined in:
- lib/generators/nopassword/install/templates/controller.rb
Instance Method Summary collapse
-
#verification_succeeded(email) ⇒ Object
Override to handle successful verification.
Methods included from NoPassword::EmailAuthentication
#create, #destroy, #new, #show, #update
Instance Method Details
#verification_succeeded(email) ⇒ Object
Override to handle successful verification. This is where you set up the user session.
Example:
def verification_succeeded(email)
self.current_user = User.find_or_create_by(email: email)
redirect_to dashboard_url
end
11 12 13 |
# File 'lib/generators/nopassword/install/templates/controller.rb', line 11 def verification_succeeded(email) redirect_to root_url end |