Changeset 411
- Timestamp:
- Feb 22, 2023, 5:54:57 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/UrlHandlers/SessionHandler.cs
r404 r411 17 17 18 18 private const string userPassLoginUrl = "login"; 19 public const string userPassLoginName = "user/pass"; 20 public const string userPassErrorPage = "UserPassLoginFailed"; 19 21 20 22 private readonly ConnectionHandler connectionHandler; … … 96 98 } 97 99 98 HandleUserIdLogin ( _context, _remoteEndpointString, "user/pass", "UserPassLoginFailed", webUser.Value.Name, webUser.Value.PlatformUser, webUser.Value.CrossPlatformUser);100 HandleUserIdLogin (connectionHandler, _context, _remoteEndpointString, userPassLoginName, userPassErrorPage, webUser.Value.Name, webUser.Value.PlatformUser, webUser.Value.CrossPlatformUser); 99 101 } 100 102 … … 138 140 139 141 UserIdentifierSteam userId = new UserIdentifierSteam (id); 140 HandleUserIdLogin ( _context, _remoteEndpointString, "Steam OpenID", steamLoginFailedPage, userId.ToString (), userId);142 HandleUserIdLogin (connectionHandler, _context, _remoteEndpointString, "Steam OpenID", steamLoginFailedPage, userId.ToString (), userId); 141 143 } 142 144 143 p rivate void HandleUserIdLogin (RequestContext _context, string _remoteEndpointString, string _loginName, string _errorPage, string _username,144 PlatformUserIdentifierAbs _userId, PlatformUserIdentifierAbs _crossUserId = null) {145 public static void HandleUserIdLogin (ConnectionHandler _connectionHandler, RequestContext _context, string _remoteEndpointString, 146 string _loginName, string _errorPage, string _username, PlatformUserIdentifierAbs _userId, PlatformUserIdentifierAbs _crossUserId = null) { 145 147 try { 146 WebConnection con = connectionHandler.LogIn (_context.Request.RemoteEndPoint!.Address, _username, _userId, _crossUserId);148 WebConnection con = _connectionHandler.LogIn (_context.Request.RemoteEndPoint!.Address, _username, _userId, _crossUserId); 147 149 148 150 int level1 = GameManager.Instance.adminTools.Users.GetUserPermissionLevel (_userId);
Note:
See TracChangeset
for help on using the changeset viewer.