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

Version Path
kaze-0.17.0 stubs/inertia-common/app/controllers/auth/email_verification_notification_controller.rb
kaze-0.16.0 stubs/inertia-common/app/controllers/auth/email_verification_notification_controller.rb
kaze-0.15.0 stubs/inertia-common/app/controllers/auth/email_verification_notification_controller.rb
kaze-0.14.0 stubs/inertia-common/app/controllers/auth/email_verification_notification_controller.rb
kaze-0.13.0 stubs/inertia-common/app/controllers/auth/email_verification_notification_controller.rb
kaze-0.12.0 stubs/inertia-common/app/controllers/auth/email_verification_notification_controller.rb
kaze-0.11.0 stubs/inertia-common/app/controllers/auth/email_verification_notification_controller.rb
kaze-0.10.0 stubs/inertia-common/app/controllers/auth/email_verification_notification_controller.rb