mirror of https://github.com/Chocobozzz/PeerTube
Don't break the API
parent
bba6538435
commit
68b7a69f99
|
@ -403,7 +403,7 @@ export const usersCheckCurrentPasswordFactory = (targetUserIdGetter: (req: expre
|
||||||
|
|
||||||
if (await user.isPasswordMatch(req.body.currentPassword) !== true) {
|
if (await user.isPasswordMatch(req.body.currentPassword) !== true) {
|
||||||
return res.fail({
|
return res.fail({
|
||||||
status: HttpStatusCode.UNAUTHORIZED_401,
|
status: HttpStatusCode.FORBIDDEN_403,
|
||||||
message: 'currentPassword is invalid.',
|
message: 'currentPassword is invalid.',
|
||||||
type: ServerErrorCode.CURRENT_PASSWORD_IS_INVALID
|
type: ServerErrorCode.CURRENT_PASSWORD_IS_INVALID
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue