mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 10:53:01 +00:00
Check for old password when setting new
Checks for password
This commit is contained in:
1 parent
33fde3bc4a
commit
76857bdcfb
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