Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def self.find_for_database_authentication(conditions)
- debugger
- value = conditions[authentication_keys.first]
- conditions = ["username = ? or email = ?", value, value]
- User.where(conditions).first
- end
Add Comment
Please, Sign In to add comment