Remove server password when password field is blank.

This commit is contained in:
Brant Martin
2018-08-30 10:07:02 -04:00
parent a318aa87cf
commit 0ff715af1b

View File

@@ -117,7 +117,13 @@ namespace Torch.Server.ViewModels
set
{
_password = value;
_config.SetPassword(value);
if(!string.IsNullOrEmpty(value))
_config.SetPassword(value);
else
{
_config.ServerPasswordHash = null;
_config.ServerPasswordSalt = null;
}
}
}
}