Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit ae43008

Browse files
committed
iii
1 parent 6a670e4 commit ae43008

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

server/controllers/integ.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ export const getExternalUsersByDepartment = async (req, res) => {
367367
}
368368
};
369369

370-
export const changePasswordSimple = async (req, res) => {
370+
export const changePasswordSimple = async (req, res) => {
371371
const { email, currentPassword, newPassword } = req.body;
372372

373373
try {
@@ -382,7 +382,7 @@ export const changePasswordSimple = async (req, res) => {
382382
if (!isMatch) {
383383
return res.status(400).json({
384384
success: false,
385-
message: "Current password is incorrect"
385+
message: "Authentication failed. The current password you entered is incorrect."
386386
});
387387
}
388388

@@ -420,7 +420,6 @@ export const changePasswordSimple = async (req, res) => {
420420
});
421421
}
422422
};
423-
424423
export const getHRUsers = async (req, res) => {
425424
try {
426425
// Find all users with department "HR"

0 commit comments

Comments
 (0)