implement reset password email

This commit is contained in:
2025-12-22 11:51:54 +01:00
parent 14c34066f3
commit d0140f4cfb
5 changed files with 185 additions and 14 deletions

View File

@@ -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)