2
0
Эх сурвалжийг харах

Fixed issue with mail being required for registering.

KrisVos130 8 жил өмнө
parent
commit
36a3d4326c

+ 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) {