diff options
| author | Bobby Wibowo <[email protected]> | 2018-04-26 13:50:35 +0700 |
|---|---|---|
| committer | Crawl <[email protected]> | 2018-04-26 08:50:35 +0200 |
| commit | 19e965a77a6e5040d2ca6ad3c9a565408c5910fe (patch) | |
| tree | 5bb57a41e4ce20354ddc11e873c1467164ad2562 /controllers/authController.js | |
| parent | no-useless-return (#94) (diff) | |
| download | host.fuwn.me-19e965a77a6e5040d2ca6ad3c9a565408c5910fe.tar.xz host.fuwn.me-19e965a77a6e5040d2ca6ad3c9a565408c5910fe.zip | |
SEMICOLONS, ermahgerd (#93)
Diffstat (limited to 'controllers/authController.js')
| -rw-r--r-- | controllers/authController.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/controllers/authController.js b/controllers/authController.js index ea32275..eb7df09 100644 --- a/controllers/authController.js +++ b/controllers/authController.js @@ -42,10 +42,10 @@ authController.register = async (req, res, next) => { if (password === undefined) return res.json({ success: false, description: 'No password provided' }); if (username.length < 4 || username.length > 32) { - return res.json({ success: false, description: 'Username must have 4-32 characters' }) + return res.json({ success: false, description: 'Username must have 4-32 characters' }); } if (password.length < 6 || password.length > 64) { - return res.json({ success: false, description: 'Password must have 6-64 characters' }) + return res.json({ success: false, description: 'Password must have 6-64 characters' }); } const user = await db.table('users').where('username', username).first(); @@ -63,7 +63,7 @@ authController.register = async (req, res, next) => { token: token, enabled: 1 }); - return res.json({ success: true, token: token }) + return res.json({ success: true, token: token }); }); }; |