浏览代码

Better not verified email error message

poeti8 7 年之前
父节点
当前提交
b56419dcd3
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      server/controllers/authController.js

+ 5 - 1
server/controllers/authController.js

@@ -49,7 +49,11 @@ const authenticate = (type, error, isStrict = true) =>
       if (err) return res.status(400);
       if (!user && isStrict) return res.status(401).json({ error });
       if (user && isStrict && !user.verified) {
-        return res.status(400).json({ error: 'Your email address is not verified.' });
+        return res.status(400).json({
+          error:
+            'Your email address is not verified.' +
+            'Click on signup to get the verification link again.',
+        });
       }
       if (user && user.banned) {
         return res.status(400).json({ error: 'Your are banned from using this website.' });