mirror of
https://github.com/zoriya/flood.git
synced 2026-06-02 02:56:05 +00:00
server: don't invalidate token on connection settings change
This commit is contained in:
@@ -147,7 +147,9 @@ class Users {
|
||||
patch.password = await hashPassword(patch.password);
|
||||
}
|
||||
|
||||
patch.timestamp = Math.ceil(Date.now() / 1000);
|
||||
if (Object.keys(patch).length > 1 || patch.client == null) {
|
||||
patch.timestamp = Math.ceil(Date.now() / 1000);
|
||||
}
|
||||
|
||||
return this.db.update({username}, {$set: patch}, {}).then((numUsersUpdated) => {
|
||||
if (numUsersUpdated === 0) {
|
||||
|
||||
Reference in New Issue
Block a user