Procházet zdrojové kódy

Fixed issue with mail being required for registering.

KrisVos130 před 8 roky
rodič
revize
36a3d4326c
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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) {