Module: User::Authentication::Local
- Defined in:
- app/models/user/authentication.rb
Overview
rubocop:todo Style/Documentation
Instance Method Summary collapse
Instance Method Details
#authenticate_by_local(login, password) ⇒ Object
90 91 92 93 |
# File 'app/models/user/authentication.rb', line 90 def authenticate_by_local(login, password) u = find_by(login: login) # need to get the salt u && u.authenticated?(password) ? u : nil end |