mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-31 00:50:45 +01:00
RemoteLoginInfo sanity checking
This commit is contained in:
@@ -216,6 +216,8 @@ namespace TGS.Interface
|
||||
/// <param name="loginInfo">The <see cref="RemoteLoginInfo"/> for a remote connection</param>
|
||||
public ServerInterface(RemoteLoginInfo loginInfo)
|
||||
{
|
||||
if (!loginInfo.HasPassword)
|
||||
throw new InvalidOperationException("password must be set on loginInfo!");
|
||||
_loginInfo = loginInfo;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user