diff options
| author | Pitu <[email protected]> | 2020-05-10 00:03:45 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2020-05-10 00:03:45 +0900 |
| commit | de54e19d3a102cad6364a6f9f50dab48c2367683 (patch) | |
| tree | 28a6249cf4c0103ff9ce85283b0e45de5e57cbd3 /src/api/routes/auth | |
| parent | Fix: consistent hash of uploads (diff) | |
| download | host.fuwn.me-de54e19d3a102cad6364a6f9f50dab48c2367683.tar.xz host.fuwn.me-de54e19d3a102cad6364a6f9f50dab48c2367683.zip | |
chore: remove the use of uuid
Diffstat (limited to 'src/api/routes/auth')
| -rw-r--r-- | src/api/routes/auth/registerPOST.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/routes/auth/registerPOST.js b/src/api/routes/auth/registerPOST.js index feeb360..0500ff6 100644 --- a/src/api/routes/auth/registerPOST.js +++ b/src/api/routes/auth/registerPOST.js @@ -2,6 +2,7 @@ const Route = require('../../structures/Route'); const log = require('../../utils/Log'); const bcrypt = require('bcrypt'); const moment = require('moment'); +const uuidv4 = require('uuid/v4'); class registerPOST extends Route { constructor() { @@ -44,6 +45,7 @@ class registerPOST extends Route { */ const now = moment.utc().toDate(); await db.table('users').insert({ + uuid: uuidv4(), username, password: hash, passwordEditedAt: now, |