1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Trim passwords on update

This commit is contained in:
David Bomba 2024-06-27 08:32:38 +10:00
parent 6ed6a001c1
commit 06f5c0ae22

View File

@ -77,7 +77,11 @@ class UpdateUserRequest extends Request
unset($input['oauth_user_token']);
}
if(isset($input['password']) && strlen($input['password'] ?? '') > 1)
{
$input['password'] = trim($input['password']);
}
$this->replace($input);
}
}