Module: ODDB::Html::State::LoginMethods

Included in:
Limit, Login, PayPal::Checkout
Defined in:
lib/oddb/html/state/login.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#desired_inputObject

Returns the value of attribute desired_input.



13
14
15
# File 'lib/oddb/html/state/login.rb', line 13

def desired_input
  @desired_input
end

Instance Method Details

#login_Object



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/oddb/html/state/login.rb', line 14

def 
  reconsider_permissions(@session.)
  if(@desired_input)
    @session.valid_input.update @desired_input
    trigger @desired_input[:event]
  else
    @session.desired_state || trigger(:home)
  end
rescue Yus::UnknownEntityError
  @errors.store(:email, create_error(:e_authentication_error, :email, nil))
  self
rescue Yus::AuthenticationError
  @errors.store(:pass, create_error(:e_authentication_error, :pass, nil))
  self
end