Index: binary-improvements2/WebServer/src/UrlHandlers/SessionHandler.cs
===================================================================
--- binary-improvements2/WebServer/src/UrlHandlers/SessionHandler.cs	(revision 416)
+++ binary-improvements2/WebServer/src/UrlHandlers/SessionHandler.cs	(revision 417)
@@ -17,5 +17,5 @@
 
 		private const string userPassLoginUrl = "login";
-		public const string userPassLoginName = "user/pass";
+		public const string userPassLoginName = "User/pass";
 		public const string userPassErrorPage = "UserPassLoginFailed";
 
@@ -144,5 +144,5 @@
 
 		public static void HandleUserIdLogin (ConnectionHandler _connectionHandler, RequestContext _context, string _remoteEndpointString,
-			string _loginName, string _errorPage, string _username, PlatformUserIdentifierAbs _userId, PlatformUserIdentifierAbs _crossUserId = null) {
+			string _loginName, string _errorPage, string _username, PlatformUserIdentifierAbs _userId, PlatformUserIdentifierAbs _crossUserId = null, bool _redirect = true) {
 			try {
 				WebConnection con = _connectionHandler.LogIn (_context.Request.RemoteEndPoint!.Address, _username, _userId, _crossUserId);
@@ -164,9 +164,14 @@
 				};
 				_context.Response.AppendCookie (cookie);
-				_context.Response.Redirect (pageBasePath);
+
+				if (_redirect) {
+					_context.Response.Redirect (pageBasePath);
+				}
 			} catch (Exception e) {
 				Log.Error ($"[Web] Error during {_loginName} login:");
 				Log.Exception (e);
-				_context.Response.Redirect (pageErrorPath + _errorPage);
+				if (_redirect) {
+					_context.Response.Redirect (pageErrorPath + _errorPage);
+				}
 			}
 		}
