Finished send password reset link

This commit is contained in:
Donald Zou
2025-07-25 18:06:42 +08:00
parent a4ee56648e
commit 62ffd97808
48 changed files with 124 additions and 79 deletions

View File

@@ -346,7 +346,10 @@ class DashboardClients:
self.dashboardClientsPasswordResetLinkTable.update().values({
"ExpiryDate": db.func.now()
}).where(
self.dashboardClientsPasswordResetLinkTable.c.ClientID == ClientID
db.and_(
self.dashboardClientsPasswordResetLinkTable.c.ClientID == ClientID,
self.dashboardClientsPasswordResetLinkTable.c.ExpiryDate > db.func.now()
)
)
)
conn.execute(