Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One less SQL query for login sequence in basic and advanced apps
- Loading branch information
Showing
2 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5b36503
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change is not needed:
LoginForm::getUserByUsername()
is incorrect because it returns the same user even if$username
is different.login()
is not important. We even want to slow downlogin()
for security reason.5b36503
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed logic: ad6411c
bcrypt only consumes CPU performance of web frontend while extra query consumes DBMS performance.