Sha256: 0ddefccab4162a5c923b49dd2e55207878860eacc3de146fc8cf79e2b70db31e

Contents?: true

Size: 474 Bytes

Versions: 13

Compression:

Stored size: 474 Bytes

Contents

class EmailVerificationsController < ApplicationController
  def new
    # verify email for current_user
  end

  def create
    current_user.regenerate_verification_token
    MinimalistAuthenticationMailer.verify_email(current_user).deliver_now

    redirect_to dashboard_path, notice: "Verification email sent to #{current_user.email}, follow the instructions to complete verification. Thank you!"
  end

  def show
    current_user.verify_email(params[:token])
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
minimalist_authentication-2.4.0 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.3.0 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.2.4 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.2.3 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.2.2 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.2.1 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.2.0 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.1.5 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.1.4 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.1.3 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.1.2 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.1.1 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.1.0 app/controllers/email_verifications_controller.rb