Module: Booth::Models::Concerns::Modeable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Booth::Models::Credential, Onboarding
- Defined in:
- lib/booth/models/concerns/modeable.rb
Instance Method Summary collapse
- #allows_mode_username_and_password? ⇒ Boolean
- #allows_mode_username_and_webauth? ⇒ Boolean
- #allows_mode_username_password_and_otp? ⇒ Boolean
- #allows_mode_username_password_and_webauth? ⇒ Boolean
- #requires_user_verification? ⇒ Boolean
Instance Method Details
#allows_mode_username_and_password? ⇒ Boolean
26 27 28 |
# File 'lib/booth/models/concerns/modeable.rb', line 26 def allows_mode_username_and_password? allowed_modes.include?('username_and_password') end |
#allows_mode_username_and_webauth? ⇒ Boolean
38 39 40 |
# File 'lib/booth/models/concerns/modeable.rb', line 38 def allows_mode_username_and_webauth? allowed_modes.include?('username_and_webauth') end |
#allows_mode_username_password_and_otp? ⇒ Boolean
30 31 32 |
# File 'lib/booth/models/concerns/modeable.rb', line 30 def allows_mode_username_password_and_otp? allowed_modes.include?('username_password_and_otp') end |
#allows_mode_username_password_and_webauth? ⇒ Boolean
34 35 36 |
# File 'lib/booth/models/concerns/modeable.rb', line 34 def allows_mode_username_password_and_webauth? allowed_modes.include?('username_password_and_webauth') end |
#requires_user_verification? ⇒ Boolean
21 22 23 24 |
# File 'lib/booth/models/concerns/modeable.rb', line 21 def requires_user_verification? # Passwordless login should always require user presence !mode_username_password_and_webauth? end |