fix 修复 snailjob http basic验证判断错误
This commit is contained in:
parent
15905b7022
commit
e1e3843ec0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user