Method: Opensteam::UserBase::User.authenticate
- Defined in:
- lib/opensteam/user_base.rb
.authenticate(email, password) ⇒ Object
116 117 118 119 |
# File 'lib/opensteam/user_base.rb', line 116 def authenticate(email, password) u = find_by_email(email) # need to get the salt u && u.authenticated?(password) ? u : nil end |