module Clerk::Helpers::Controller

Public Instance Methods

authenticate_account!() click to toggle source
# File lib/clerk/helpers.rb, line 10
def authenticate_account!
  if account_signed_in?
    if Clerk.config.email_address_verification == "forced" and !current_account.verified_email_address
      redirect_to verify_email_address_url and return
    end
  else
    redirect_to sign_in_url and return
  end
end