mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 11:12:27 +00:00
Fix the fix
this should actually be what's intended
This commit is contained in:
1 parent
76857bdcfb
commit
6ab26cb3ff
1 file changed
+1
-1
@@ -127,7 +127,7 @@ router.patch(
|
||||
}
|
||||
|
||||
if (body.new_password) {
|
||||
if (!body.password || !user.email) {
|
||||
if (!body.password && user.email) {
|
||||
throw FieldErrors({
|
||||
password: {
|
||||
code: "BASE_TYPE_REQUIRED",
|
||||
|
||||
Reference in new issue
Block a user