Skip to content

Commit 0ff715a

Browse files
committed
Remove server password when password field is blank.
1 parent a318aa8 commit 0ff715a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎Torch.Server/ViewModels/ConfigDedicatedViewModel.cs‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,13 @@ public string Password
117117
set
118118
{
119119
_password = value;
120-
_config.SetPassword(value);
120+
if(!string.IsNullOrEmpty(value))
121+
_config.SetPassword(value);
122+
else
123+
{
124+
_config.ServerPasswordHash = null;
125+
_config.ServerPasswordSalt = null;
126+
}
121127
}
122128
}
123129
}

0 commit comments

Comments
 (0)