fix(Recipes): auth-jwt-login bug not returning nil if user not found
Why?
Instead of returning "User not found", "Invalid password" is displayed when calling getUserByEmail or getUserByUsername and the user is not found in the database.
Related issue: Fixes #2212
What?
This PR updates the database query in the getUserByEmail and getUserByUsername to use First() instead of Find() when looking up a single user record.
Tests:
Thanks for opening this pull request! 🎉 Please check out our contributing guidelines.
@yogenpoonudurai thx for the effort and PR, can you check the last hints
Ok, will do.
Ping @yogenpoonudurai
Sorry guys. Missed this. Seems like this has been fixed in #2242. Closing this.