implement reset password email
This commit is contained in:
@@ -7,7 +7,7 @@ from cutt.db import Player, TokenDB, engine
|
||||
if len(sys.argv) > 1:
|
||||
with Session(engine) as session:
|
||||
for p in session.exec(
|
||||
select(Player.username).where(Player.username == sys.argv[1].strip())
|
||||
select(Player).where(Player.username == sys.argv[1].strip())
|
||||
):
|
||||
print(p)
|
||||
token = set_password_token(p)
|
||||
|
||||
Reference in New Issue
Block a user