user: hash email key for User.get_by_email() fixes #4132
This commit is contained in:
parent
708038952c
commit
391379c4ab
1 changed files with 1 additions and 1 deletions
|
|
@ -721,7 +721,7 @@ class User(Base, BaseModel):
|
|||
|
||||
if cache:
|
||||
q = q.options(FromCache("sql_cache_short",
|
||||
"get_email_key_%s" % email))
|
||||
"get_email_key_%s" % _hash_key(email)))
|
||||
|
||||
ret = q.scalar()
|
||||
if ret is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue