401 -> 403
This commit is contained in:
1 parent
d4a6df5df3
commit
df11a457f1
1 file changed
+1
-1
@@ -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