mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-23 02:29:30 -05:00
401 -> 403
This commit is contained in:
@@ -284,7 +284,7 @@ const editUser = async (req, res, next) => {
|
||||
// If not a match, throw a 401
|
||||
if (!match) {
|
||||
const error = new Error(errorMessages.AUTH_INCORRECT_PASSWORD);
|
||||
error.status = 401;
|
||||
error.status = 403;
|
||||
next(error);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user