mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-25 11:43:07 +01:00
Fix the fix
this should actually be what's intended
This commit is contained in:
parent
582853542a
commit
58603eefe4
@ -127,7 +127,7 @@ router.patch(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (body.new_password) {
|
if (body.new_password) {
|
||||||
if (!body.password || !user.email) {
|
if (!body.password && user.email) {
|
||||||
throw FieldErrors({
|
throw FieldErrors({
|
||||||
password: {
|
password: {
|
||||||
code: "BASE_TYPE_REQUIRED",
|
code: "BASE_TYPE_REQUIRED",
|
||||||
|
Loading…
Reference in New Issue
Block a user