Class: Booth::Authenticators::Step

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

Instance Method Summary collapse

Methods included from MethodObject

included

Instance Method Details

#callObject



8
9
10
11
12
13
14
15
16
# File 'lib/booth/authenticators/step.rb', line 8

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