Module: Clerk::Helpers::Controller
- Defined in:
- lib/clerk/helpers.rb
Instance Method Summary collapse
Instance Method Details
#authenticate_account! ⇒ Object
10 11 12 13 14 15 16 17 18 |
# 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 |