notify: no need to include dashes in token
This commit is contained in:
parent
09b3d1510b
commit
5564c8cbfc
1 changed files with 2 additions and 1 deletions
|
@ -291,7 +291,8 @@ def send_notification():
|
|||
con = get_db()
|
||||
cur = con.cursor()
|
||||
res = cur.execute(
|
||||
"SELECT username FROM tokens WHERE token = ?", (token,)
|
||||
"SELECT username FROM tokens WHERE REPLACE(token, '-', '') = ? OR token = ? ",
|
||||
(token, token),
|
||||
).fetchone()
|
||||
|
||||
if not res:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue