- Timestamp:
- May 7, 2023, 5:05:29 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/UrlHandlers/SessionHandler.cs
r422 r433 90 90 } 91 91 92 AdminWebUsers.WebUser? webUser = AdminWebUsers.Instance.GetUser (username, password); 93 94 if (!webUser.HasValue) { 92 if (!AdminWebUsers.Instance.TryGetUser (username, password, out AdminWebUsers.WebUser webUser)) { 95 93 Log.Out ($"[Web] User/pass login failed from {_remoteEndpointString}"); 96 94 WebUtils.WriteText (_context.Response, "UserPassInvalid", HttpStatusCode.Unauthorized); … … 98 96 } 99 97 100 HandleUserIdLogin (connectionHandler, _context, _remoteEndpointString, userPassLoginName, userPassErrorPage, webUser. Value.Name, webUser.Value.PlatformUser, webUser.Value.CrossPlatformUser);98 HandleUserIdLogin (connectionHandler, _context, _remoteEndpointString, userPassLoginName, userPassErrorPage, webUser.Name, webUser.PlatformUser, webUser.CrossPlatformUser); 101 99 } 102 100
Note:
See TracChangeset
for help on using the changeset viewer.