Class: Misty::Auth::User
- Includes:
- Domain
- Defined in:
- lib/misty/auth/name.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
Attributes included from Domain
Attributes inherited from Name
Instance Method Summary collapse
Methods inherited from Name
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
49 50 51 |
# File 'lib/misty/auth/name.rb', line 49 def password @password end |
Instance Method Details
#identity ⇒ Object
51 52 53 54 55 56 |
# File 'lib/misty/auth/name.rb', line 51 def identity data = super raise Misty::Config::CredentialsError, "#{self.class}: No password available" if password.nil? data.merge!(to_h(:password)) { :user => data } end |