Skip to content

Commit

Permalink
Fixed username lookup field (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbelletti authored Nov 16, 2023
1 parent 52e9aef commit 24dcf38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py4web/utils/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ def request_reset_password(self, email, send=True, next="", route=None):
field = (
db.auth_user.email
if "@" in value or not self.use_username
else self.auth_user.username
else db.auth_user.username
)
user = db(field == value).select().first()
if user and user.action_token != "account-blocked":
Expand Down

0 comments on commit 24dcf38

Please sign in to comment.