fix: check for password only if username
is present in body
This commit is contained in:
parent
b682f170b9
commit
f047f93b77
@ -160,7 +160,6 @@ router.patch(
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!body.password) {
|
if (!body.password) {
|
||||||
throw FieldErrors({
|
throw FieldErrors({
|
||||||
@ -170,6 +169,7 @@ router.patch(
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (body.discriminator) {
|
if (body.discriminator) {
|
||||||
if (
|
if (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user