Class: ActionAuth::Identity::EmailVerificationsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ActionAuth::Identity::EmailVerificationsController
- Defined in:
- app/controllers/action_auth/identity/email_verifications_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
11 12 13 14 15 |
# File 'app/controllers/action_auth/identity/email_verifications_controller.rb', line 11 def create user = ActionAuth::User.find_by(email: params[:email]) UserMailer.with(user: user).email_verification.deliver_later if user redirect_to sign_in_path, notice: "We sent a verification email to your email address" end |
#show ⇒ Object
6 7 8 9 |
# File 'app/controllers/action_auth/identity/email_verifications_controller.rb', line 6 def show @user.update! verified: true redirect_to sign_in_path, notice: "Thank you for verifying your email address" end |