handle login failure when revalidating authz
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (pull_request) Successful in 49s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (pull_request) Successful in 49s
				
			This commit is contained in:
		
							parent
							
								
									21d46d3caa
								
							
						
					
					
						commit
						4d972f2ead
					
				@ -61,7 +61,11 @@ function openWebSocket() {
 | 
			
		||||
        if ("auth_fail" in msg) {
 | 
			
		||||
            auth_pending = false;
 | 
			
		||||
            logout();
 | 
			
		||||
            alert(loc(msg.auth_fail.isRegister ? "code_regFail" : "code_loginFail"));
 | 
			
		||||
            if (single.getCurrentPath() == "/webui/") {
 | 
			
		||||
                alert(loc(msg.auth_fail.isRegister ? "code_regFail" : "code_loginFail"));
 | 
			
		||||
            } else {
 | 
			
		||||
                single.loadRoute("/webui/");
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        if ("logged_out" in msg) {
 | 
			
		||||
            sendAuth();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user