Class: Booth::Adminland::Authenticators::Exist
- Inherits:
-
Object
- Object
- Booth::Adminland::Authenticators::Exist
- Includes:
- Logging, Calls
- Defined in:
- lib/booth/adminland/authenticators/exist.rb
Overview
Checks whether a credential has registered authenticators.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/booth/adminland/authenticators/exist.rb', line 13 def call return unknown_credential_result unless credential count = credential.registered_authenticator_ids.size case count when 0 then no_authenticators_result when 1 then one_authenticator_result else multiple_authenticators_result end end |