mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修复 snailjob http basic验证判断错误
This commit is contained in:
		@@ -44,7 +44,7 @@ public class ActuatorAuthFilter implements Filter {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        // 验证用户名和密码
 | 
			
		||||
        if (!username.equals(split[0]) && password.equals(split[1])) {
 | 
			
		||||
        if (!username.equals(split[0]) || !password.equals(split[1])) {
 | 
			
		||||
            response.setHeader("WWW-Authenticate", "Basic realm=\"realm\"");
 | 
			
		||||
            response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized");
 | 
			
		||||
            return;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user