The `resetPasswordForToken` function updates the password row without invalidating database-backed sessions. This allows an attacker who has already established a session to maintain access to a compromised account even after the legitimate user resets the password, until the session reaches its `30-day` maximum age.