We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6cac275 + 37d811a commit 755897eCopy full SHA for 755897e
server/controllers/user.controller.js
@@ -30,8 +30,7 @@ const random = (done) => {
30
};
31
32
export function createUser(req, res, next) {
33
- const { username, email } = req.body;
34
- const { password } = req.body;
+ const { username, email, password } = req.body;
35
const emailLowerCase = email.toLowerCase();
36
const EMAIL_VERIFY_TOKEN_EXPIRY_TIME = Date.now() + 3600000 * 24; // 24 hours
37
random((tokenError, token) => {
0 commit comments