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

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