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.get(:mail => mail)
- return user unless pass
- user if user.authenticated?(pass)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement