Remove server password when password field is blank.
This commit is contained in:
@@ -117,7 +117,13 @@ namespace Torch.Server.ViewModels
|
||||
set
|
||||
{
|
||||
_password = value;
|
||||
if(!string.IsNullOrEmpty(value))
|
||||
_config.SetPassword(value);
|
||||
else
|
||||
{
|
||||
_config.ServerPasswordHash = null;
|
||||
_config.ServerPasswordSalt = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user