diff --git a/Backend/src/api/events/admin-accounts.controller.ts b/Backend/src/api/events/admin-accounts.controller.ts index 11ce8d7..67fffe3 100644 --- a/Backend/src/api/events/admin-accounts.controller.ts +++ b/Backend/src/api/events/admin-accounts.controller.ts @@ -59,8 +59,7 @@ export class AdminAccountsController implements interfaces.Controller { if (!this.passWordHashingService.isPasswordHashed(passWord, result[0].passWord)) { if (backendConfiguration.debug) { return response.status(400).json({ - error: `The password \"${passWord}\" with the hash - \"${passwordHash}\", does not match the hash \"${result[0].passWord}\" of the stored password!` + error: `The password is incorrect!` }); } else { return response.status(400).json({ diff --git a/Backend/src/api/events/change-user-profile.controller.ts b/Backend/src/api/events/change-user-profile.controller.ts index bc3cb09..70ad1ee 100644 --- a/Backend/src/api/events/change-user-profile.controller.ts +++ b/Backend/src/api/events/change-user-profile.controller.ts @@ -60,9 +60,7 @@ export class ChangeUserProfileController implements interfaces.Controller { if (!this.passWordHashingService.isPasswordHashed(request.body.oldPassword, userAccounts[0].passWord)) { return response.status(400).json({ - error: `The old password \"${request.body.oldPassword}\" - with the hash \"${hashedPassword}\" - and the hash \"${userAccounts[0].passWord}\" of the password found in the database do not match!` + error: `The password is incorrect!` }); } diff --git a/Backend/src/api/events/user-accounts.controller.ts b/Backend/src/api/events/user-accounts.controller.ts index 11069ab..dcce704 100644 --- a/Backend/src/api/events/user-accounts.controller.ts +++ b/Backend/src/api/events/user-accounts.controller.ts @@ -59,8 +59,7 @@ export class UserAccountsController implements interfaces.Controller { if (!this.passWordHashingService.isPasswordHashed(passWord, result[0].passWord)) { if (backendConfiguration.debug) { return response.status(400).json({ - error: `The password \"${passWord}\" with the hash - \"${passwordHash}\", does not match the hash \"${result[0].passWord}\" of the stored password!` + error: `The password is incorrect!` }); } else { return response.status(400).json({