Sha256: 162331b43806cb2c252f89a7a843a76f61e70d015c3bd474d8afdaebcc9ec6f5
Contents?: true
Size: 443 Bytes
Versions: 1
Compression:
Stored size: 443 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.with(user: current_user).verify_email.deliver_now redirect_to dashboard_path, notice: t(".notice", email: current_user.email) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minimalist_authentication-3.1.0 | app/controllers/email_verifications_controller.rb |