diff options
| author | Adam Soltys <[email protected]> | 2023-04-06 17:57:35 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-04-06 22:25:03 +0000 |
| commit | 4d480b400a3a7d6990aac4a0cacccd86c0fd9cd3 (patch) | |
| tree | 4ce58bcbdd3578ad53347134458a462da580c42b /routes/users.js | |
| parent | 99b72e143866d5cc62ba04847885070dc9a5c645 (diff) | |
| download | coinos-server-base.tar.gz coinos-server-base.zip | |
capture funds snapshotsbase
Diffstat (limited to 'routes/users.js')
| -rw-r--r-- | routes/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/users.js b/routes/users.js index 9130b249..e82a6772 100644 --- a/routes/users.js +++ b/routes/users.js @@ -463,7 +463,7 @@ export default { async reset({ body: { username, password }, user: { admin } }, res) { if (!admin) fail("unauthorized"); try { - let id = await g(`user:${username}`); + let id = await g(`user:${username.toLowerCase().replace(/\s/g, "")}`); let user = await g(`user:${id}`); user.pubkey = null; |
