1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 05:19:22 +00:00
This commit is contained in:
Pierre HUBERT 2020-07-13 14:15:17 +02:00
parent a2c8a0c437
commit c3e749361a

View File

@ -202,7 +202,7 @@ export class AccountController {
// Check the answers // Check the answers
if(answers[0] != settings.security_answer_1.toLowerCase().trim() || if(answers[0] != settings.security_answer_1.toLowerCase().trim() ||
answers[1] != settings.security_answer_2.toLowerCase().trim()) answers[1] != settings.security_answer_2.toLowerCase().trim())
h.error(401, "Specified ecurity answers are invalid!"); h.error(401, "Specified security answers are invalid!");
// If we get there, security answers are valid, we can create a password reset token // If we get there, security answers are valid, we can create a password reset token
h.send({ h.send({