Changeset 417 for binary-improvements2/WebServer
- Timestamp:
- Feb 27, 2023, 9:38:45 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/UrlHandlers/SessionHandler.cs
r411 r417 17 17 18 18 private const string userPassLoginUrl = "login"; 19 public const string userPassLoginName = " user/pass";19 public const string userPassLoginName = "User/pass"; 20 20 public const string userPassErrorPage = "UserPassLoginFailed"; 21 21 … … 144 144 145 145 public static void HandleUserIdLogin (ConnectionHandler _connectionHandler, RequestContext _context, string _remoteEndpointString, 146 string _loginName, string _errorPage, string _username, PlatformUserIdentifierAbs _userId, PlatformUserIdentifierAbs _crossUserId = null ) {146 string _loginName, string _errorPage, string _username, PlatformUserIdentifierAbs _userId, PlatformUserIdentifierAbs _crossUserId = null, bool _redirect = true) { 147 147 try { 148 148 WebConnection con = _connectionHandler.LogIn (_context.Request.RemoteEndPoint!.Address, _username, _userId, _crossUserId); … … 164 164 }; 165 165 _context.Response.AppendCookie (cookie); 166 _context.Response.Redirect (pageBasePath); 166 167 if (_redirect) { 168 _context.Response.Redirect (pageBasePath); 169 } 167 170 } catch (Exception e) { 168 171 Log.Error ($"[Web] Error during {_loginName} login:"); 169 172 Log.Exception (e); 170 _context.Response.Redirect (pageErrorPath + _errorPage); 173 if (_redirect) { 174 _context.Response.Redirect (pageErrorPath + _errorPage); 175 } 171 176 } 172 177 }
Note:
See TracChangeset
for help on using the changeset viewer.