소스 검색

added a comment

kaori 4 년 전
부모
커밋
e3a855a5b7
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/server/routes/apiv3/forgot-password.js

+ 1 - 0
src/server/routes/apiv3/forgot-password.js

@@ -71,6 +71,7 @@ module.exports = (crowi) => {
 
     const user = await User.findOne({ email });
 
+    // when the user is not found or active
     if (user == null || user.status !== 2) {
       return res.apiv3Err('update-password-failed');
     }