Sha256: e9f1091c4018d7c2ab7905ac6c97067add99c16cf0a94736dc88ed6a67a81659
Contents?: true
Size: 633 Bytes
Versions: 8
Compression:
Stored size: 633 Bytes
Contents
class Auth::EmailVerificationNotificationController < ApplicationController skip_ensure_email_is_verified before_action { redirect_to dashboard_path unless User.include?(MustVerifyEmail) } def new return redirect_to dashboard_path if Current.auth.user.has_verified_email? render inertia: 'Auth/VerifyEmail', props: { status: flash[:status] } 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
8 entries across 8 versions & 1 rubygems