Guest User

Untitled

a guest
Mar 11th, 2018
1,220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. def authenticated?
  2. username, password = *credentials
  3. @current_user = User.find_by_username(username)
  4. !@current_user.nil? and (@current_user.password == password)
  5. end
Add Comment
Please, Sign In to add comment