Explorar o código

Fixed issue with mail being required for registering.

KrisVos130 %!s(int64=8) %!d(string=hai) anos
pai
achega
36a3d4326c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      backend/logic/actions/users.js

+ 3 - 1
backend/logic/actions/users.js

@@ -440,7 +440,9 @@ module.exports = {
 			},
 
 			(user, next) => {
-				mail.schemas.verifyEmail(newEmail, user.username, verificationToken, next);
+				mail.schemas.verifyEmail(newEmail, user.username, verificationToken, () => {
+					next();
+				});
 			}
 		], (err) => {
 			if (err && err !== true) {