Sha256: af2e9d3a52b670f25b0618e8fbbe1b6726fc3c616dd8689393e7a64692c1ef9e

Contents?: true

Size: 432 Bytes

Versions: 8

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

class EmailVerificationsController < ApplicationController
  def show
    current_user.verify_email(params[:token])
  end

  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: t(".notice", email: current_user.email)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
minimalist_authentication-3.0.0 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.7.0 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.6.2 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.6.1 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.6.0 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.5.2 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.5.1 app/controllers/email_verifications_controller.rb
minimalist_authentication-2.5.0 app/controllers/email_verifications_controller.rb