Allow setting blank XC password.

This commit is contained in:
SergeantPanda 2025-06-28 09:42:00 -05:00
parent 6a57d4a7c7
commit e9d60cdb1e

View file

@ -78,9 +78,8 @@ const User = ({ user = null, isOpen, onClose }) => {
user?.custom_properties || '{}'
);
if (values.xc_password) {
customProps.xc_password = values.xc_password;
}
// Always save xc_password, even if it's empty (to allow clearing)
customProps.xc_password = values.xc_password || '';
delete values.xc_password;
values.custom_properties = JSON.stringify(customProps);