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(, password)
  return nil  unless user = ()
  return user if     user.authenticated?(password)
end