Sha256: cf3095af76876e6fc8151ae6e81135e4b9394d69a1045a0d06549397c8fab5d7
Contents?: true
Size: 598 Bytes
Versions: 9
Compression:
Stored size: 598 Bytes
Contents
class Auth::EmailVerificationNotificationController < ApplicationController skip_ensure_email_is_verified before_action { redirect_to dashboard_path unless User.include?(MustVerifyEmail) } layout 'guest' def new return redirect_to dashboard_path if Current.auth.user.has_verified_email? render 'auth/verify_email' end def create return redirect_to dashboard_path if Current.auth.user.has_verified_email? Current.auth.user.send_email_verification_notification redirect_back_or_to verification_notice_path, flash: { status: 'verification-link-sent' } end end
Version data entries
9 entries across 9 versions & 1 rubygems