Module: Barjillo::ActAsAuthModel::ClassMethods
- Defined in:
- lib/barjillo/act_as_auth_model.rb
Instance Method Summary collapse
Instance Method Details
#authenticate(login, password) ⇒ Object
76 77 78 79 |
# File 'lib/barjillo/act_as_auth_model.rb', line 76 def authenticate(login, password) return nil unless user = find_by_login(login) return user if user.authenticated?(password) end |