Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def self.authenticate(hash)
- mail, pass = hash['mail'], hash['password']
- if user = Player.first(:mail => mail)
- user if pass && user.authenticated?(pass)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement