Class: ActionAuth::Identity::EmailVerificationsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/action_auth/identity/email_verifications_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



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 , notice: "We sent a verification email to your email address"
end

#showObject



6
7
8
9
# File 'app/controllers/action_auth/identity/email_verifications_controller.rb', line 6

def show
  @user.update! verified: true
  redirect_to , notice: "Thank you for verifying your email address"
end