Class: Booth::Core::Authenticators::Step

Inherits:
Object
  • Object
show all
Includes:
Calls
Defined in:
lib/booth/core/authenticators/step.rb

Overview

Registration status of an Authenticator.

Instance Method Summary collapse

Instance Method Details

#callObject



12
13
14
15
16
17
18
19
20
# File 'lib/booth/core/authenticators/step.rb', line 12

def call
  return :register if authenticator.device_id.blank? ||
                      authenticator.public_key.blank? ||
                      authenticator.sign_count.blank?
  return :choose_nickname if authenticator.nickname.blank?
  return :confirm if authenticator.confirmed_at.blank?

  :completed
end