Module: SimpleAuth::Authenticated::ClassMethods
- Defined in:
- lib/simple_auth/authenticated.rb
Instance Method Summary collapse
Instance Method Details
#authenticate(login, password) ⇒ Object
105 106 107 108 |
# File 'lib/simple_auth/authenticated.rb', line 105 def authenticate(login, password) return nil unless user = find_by_login(login) return user if user.authenticated?(password) end |