mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 22:32:43 +00:00
Change private static method to private methods
This commit is contained in:
parent
b0fcc1f0fa
commit
99eacf2f0b
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 the original author or authors.
|
* Copyright 2002-2023 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -303,14 +303,14 @@ public class DefaultLoginPageGeneratingFilter extends GenericFilterBean {
|
|||||||
return matches(request, this.failureUrl);
|
return matches(request, this.failureUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String createError(boolean isError, String message) {
|
private String createError(boolean isError, String message) {
|
||||||
if (!isError) {
|
if (!isError) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
return "<div class=\"alert alert-danger\" role=\"alert\">" + HtmlUtils.htmlEscape(message) + "</div>";
|
return "<div class=\"alert alert-danger\" role=\"alert\">" + HtmlUtils.htmlEscape(message) + "</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String createLogoutSuccess(boolean isLogoutSuccess) {
|
private String createLogoutSuccess(boolean isLogoutSuccess) {
|
||||||
if (!isLogoutSuccess) {
|
if (!isLogoutSuccess) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user