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