aboutsummaryrefslogtreecommitdiff
path: root/controllers/authController.js
diff options
context:
space:
mode:
authorBobby Wibowo <[email protected]>2018-04-26 13:50:35 +0700
committerCrawl <[email protected]>2018-04-26 08:50:35 +0200
commit19e965a77a6e5040d2ca6ad3c9a565408c5910fe (patch)
tree5bb57a41e4ce20354ddc11e873c1467164ad2562 /controllers/authController.js
parentno-useless-return (#94) (diff)
downloadhost.fuwn.me-19e965a77a6e5040d2ca6ad3c9a565408c5910fe.tar.xz
host.fuwn.me-19e965a77a6e5040d2ca6ad3c9a565408c5910fe.zip
SEMICOLONS, ermahgerd (#93)
Diffstat (limited to 'controllers/authController.js')
-rw-r--r--controllers/authController.js6
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 });
});
};