Explorar el Código

Fixed issue with mail being required for registering.

KrisVos130 hace 8 años
padre
commit
36a3d4326c
Se han modificado 1 ficheros con 3 adiciones y 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) {