sync update from LAN repo (source dhk-1 @ 3b1ec5b4)

This commit is contained in:
gozeros committed 2026-11-05 10:56:34 +08:00
1 parent da6521b6cb
commit 264e2200d6
995 files changed
+148105 -13399

No files matched your search

@@ -64,8 +64,7 @@ async def _run(email: str | None) -> int:
return 1
new_password = secrets.token_urlsafe(16)
user.password_hash = hash_password(new_password)
user.token_version += 1
user = await repo.update_credentials(user, hash_password(new_password))
user.needs_setup = True
await repo.update_user(user)