diff --git a/app/api/users/specs/users.spec.js b/app/api/users/specs/users.spec.js index b6e81ae9d8..45da5465a4 100644 --- a/app/api/users/specs/users.spec.js +++ b/app/api/users/specs/users.spec.js @@ -587,16 +587,13 @@ describe('Users', () => { }); describe('when the user does not exist with that email', () => { - it('should not create the entry in the database, should not send a mail, and return an error.', async () => { + it('should not create the entry in the database, should not send a mail, and return nothing', async () => { jest.spyOn(Date, 'now').mockReturnValue(1000); const key = unlockCode.generateUnlockCode(); let response; - try { - response = await users.recoverPassword('false@email.com'); - } catch (error) { - expect(error.code).toBe(403); - response = await passwordRecoveriesModel.get({ key }); - } + response = await users.recoverPassword('false@email.com'); + expect(response).toBe(undefined); + response = await passwordRecoveriesModel.get({ key }); expect(response.length).toBe(0); }); }); diff --git a/app/api/users/users.js b/app/api/users/users.js index f9f44d5827..523760c682 100644 --- a/app/api/users/users.js +++ b/app/api/users/users.js @@ -321,7 +321,7 @@ export default { }); } - return Promise.reject(createError('User not found', 403)); + return undefined; }); }, diff --git a/contents/ui-translations/ar.csv b/contents/ui-translations/ar.csv index 1afaa2caa3..1fb49a48fd 100644 --- a/contents/ui-translations/ar.csv +++ b/contents/ui-translations/ar.csv @@ -398,7 +398,7 @@ Install browser extension (dynamic link),Install browser extension (dynamic link Install Language(s),Install Language(s) INSTALL the browser extension,INSTALL the browser extension "Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation.","Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation." -Instructions to reset password,If the email address supplied is correct +Instructions to reset password,"If the email address supplied is correct, we will send instructions to reset the password." Instructions to reset the password were sent to the user,Instructions to reset the password were sent to the user Invalid captcha,حروف التحقق غير صحيحة Invalid csv: all the values for a row must be either nested or non-nested,Invalid csv: all the values for a row must be either nested or non-nested diff --git a/contents/ui-translations/en.csv b/contents/ui-translations/en.csv index 216ce36697..b2bf50090d 100644 --- a/contents/ui-translations/en.csv +++ b/contents/ui-translations/en.csv @@ -401,7 +401,7 @@ Install browser extension (dynamic link),Install browser extension (dynamic link Install Language(s),Install Language(s) INSTALL the browser extension,INSTALL the browser extension "Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation.","Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation." -Instructions to reset password,If the email address supplied is correct +Instructions to reset password,"If the email address supplied is correct, we will send instructions to reset the password." Instructions to reset the password were sent to the user,Instructions to reset the password were sent to the user Invalid captcha,Invalid captcha Invalid csv: all the values for a row must be either nested or non-nested,Invalid csv: all the values for a row must be either nested or non-nested diff --git a/contents/ui-translations/fr.csv b/contents/ui-translations/fr.csv index 701682c7d7..9585bf8317 100644 --- a/contents/ui-translations/fr.csv +++ b/contents/ui-translations/fr.csv @@ -398,7 +398,7 @@ Install browser extension (dynamic link),Install browser extension (dynamic link Install Language(s),Install Language(s) INSTALL the browser extension,INSTALL the browser extension "Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation.","Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation." -Instructions to reset password,If the email address supplied is correct +Instructions to reset password,"If the email address supplied is correct, we will send instructions to reset the password." Instructions to reset the password were sent to the user,Instructions to reset the password were sent to the user Invalid captcha,Captcha invalide Invalid csv: all the values for a row must be either nested or non-nested,Invalid csv: all the values for a row must be either nested or non-nested diff --git a/contents/ui-translations/ko.csv b/contents/ui-translations/ko.csv index 976d8bd8d8..29c287ba28 100644 --- a/contents/ui-translations/ko.csv +++ b/contents/ui-translations/ko.csv @@ -399,7 +399,7 @@ Install browser extension (dynamic link),Install browser extension (dynamic link Install Language(s),Install Language(s) INSTALL the browser extension,INSTALL the browser extension "Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation.","Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation." -Instructions to reset password,If the email address supplied is correct +Instructions to reset password,"If the email address supplied is correct, we will send instructions to reset the password." Instructions to reset the password were sent to the user,Instructions to reset the password were sent to the user Invalid captcha,잘못된 보안문자 Invalid csv: all the values for a row must be either nested or non-nested,Invalid csv: all the values for a row must be either nested or non-nested diff --git a/contents/ui-translations/my.csv b/contents/ui-translations/my.csv index 2111691f20..9ecd28ce49 100644 --- a/contents/ui-translations/my.csv +++ b/contents/ui-translations/my.csv @@ -399,7 +399,7 @@ Install browser extension (dynamic link),Install browser extension (dynamic link Install Language(s),Install Language(s) INSTALL the browser extension,INSTALL the browser extension "Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation.","Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation." -Instructions to reset password,If the email address supplied is correct +Instructions to reset password,"If the email address supplied is correct, we will send instructions to reset the password." Instructions to reset the password were sent to the user,Instructions to reset the password were sent to the user Invalid captcha,ကက်ပ်ချာ မှားနေသည် Invalid csv: all the values for a row must be either nested or non-nested,Invalid csv: all the values for a row must be either nested or non-nested diff --git a/contents/ui-translations/ru.csv b/contents/ui-translations/ru.csv index 1758e30271..febe6b7185 100644 --- a/contents/ui-translations/ru.csv +++ b/contents/ui-translations/ru.csv @@ -396,7 +396,7 @@ Install browser extension (dynamic link),Install browser extension (dynamic link Install Language(s),Install Language(s) INSTALL the browser extension,INSTALL the browser extension "Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation.","Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation." -Instructions to reset password,If the email address supplied is correct +Instructions to reset password,"If the email address supplied is correct, we will send instructions to reset the password." Instructions to reset the password were sent to the user,Instructions to reset the password were sent to the user Invalid captcha,Неверная Captcha Invalid csv: all the values for a row must be either nested or non-nested,Invalid csv: all the values for a row must be either nested or non-nested diff --git a/contents/ui-translations/th.csv b/contents/ui-translations/th.csv index 0ff55ee88a..a0f2350e62 100644 --- a/contents/ui-translations/th.csv +++ b/contents/ui-translations/th.csv @@ -399,7 +399,7 @@ Install browser extension (dynamic link),Install browser extension (dynamic link Install Language(s),Install Language(s) INSTALL the browser extension,INSTALL the browser extension "Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation.","Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation." -Instructions to reset password,If the email address supplied is correct +Instructions to reset password,"If the email address supplied is correct, we will send instructions to reset the password." Instructions to reset the password were sent to the user,Instructions to reset the password were sent to the user Invalid captcha,captcha ไม่ถูกต้อง Invalid csv: all the values for a row must be either nested or non-nested,Invalid csv: all the values for a row must be either nested or non-nested diff --git a/contents/ui-translations/tr.csv b/contents/ui-translations/tr.csv index ae2a7db781..1d701986e8 100644 --- a/contents/ui-translations/tr.csv +++ b/contents/ui-translations/tr.csv @@ -399,7 +399,7 @@ Install browser extension (dynamic link),Install browser extension (dynamic link Install Language(s),Install Language(s) INSTALL the browser extension,INSTALL the browser extension "Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation.","Instructions on how to achieve this will vary according to the app used, please refer to the app's documentation." -Instructions to reset password,If the email address supplied is correct +Instructions to reset password,"If the email address supplied is correct, we will send instructions to reset the password." Instructions to reset the password were sent to the user,Instructions to reset the password were sent to the user Invalid captcha,Geçersiz güvenlik kodu Invalid csv: all the values for a row must be either nested or non-nested,Invalid csv: all the values for a row must be either nested or non-nested diff --git a/package.json b/package.json index 58c835c38c..93f1b813c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uwazi", - "version": "1.184.5", + "version": "1.184.6", "description": "Uwazi is a free, open-source solution for organising, analysing and publishing your documents.", "keywords": [ "react"