瀏覽代碼

Fixed issue with mail being required for registering.

KrisVos130 8 年之前
父節點
當前提交
36a3d4326c
共有 1 個文件被更改,包括 3 次插入1 次删除
  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) {