We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a008d24 + 755897e commit fb51be5Copy full SHA for fb51be5
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