Check for old password when setting new

Checks for password
This commit is contained in:
MathMan05 2024-08-25 22:56:55 -05:00 committed by Madeline
parent 33fde3bc4a
commit 76857bdcfb

View File

@ -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",