Module: User::Authentication::Local
- Defined in:
- app/models/user/authentication.rb
Instance Method Summary collapse
Instance Method Details
#authenticate_by_local(login, password) ⇒ Object
97 98 99 100 |
# File 'app/models/user/authentication.rb', line 97 def authenticate_by_local(login, password) u = find_by(login:) # need to get the salt u && u.authenticated?(password) ? u : nil end |