Module: User::Authentication::Local

Defined in:
app/models/user/authentication.rb

Instance Method Summary collapse

Instance Method Details

#authenticate_by_local(login, password) ⇒ Object


89
90
91
92
# File 'app/models/user/authentication.rb', line 89

def authenticate_by_local(, password)
  u = find_by(login: ) # need to get the salt
  u && u.authenticated?(password) ? u : nil
end