Spaces:
Sleeping
Sleeping
fix favico
Browse files
src/main/java/com/darkfantasy/security/ForceChangePasswordInterceptor.java
CHANGED
|
@@ -32,7 +32,14 @@ public class ForceChangePasswordInterceptor implements HandlerInterceptor {
|
|
| 32 |
return true;
|
| 33 |
}
|
| 34 |
String uri = request.getRequestURI();
|
| 35 |
-
if (user.isMustChangePassword()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
response.sendRedirect(Routes.USER + "/change-password");
|
| 37 |
return false;
|
| 38 |
}
|
|
|
|
| 32 |
return true;
|
| 33 |
}
|
| 34 |
String uri = request.getRequestURI();
|
| 35 |
+
if (user.isMustChangePassword()
|
| 36 |
+
&& !uri.startsWith(Routes.USER + "/change-password")
|
| 37 |
+
&& !uri.startsWith("/favicon.ico")
|
| 38 |
+
&& !uri.startsWith("/css/")
|
| 39 |
+
&& !uri.startsWith("/js/")
|
| 40 |
+
&& !uri.startsWith("/img/")
|
| 41 |
+
&& !uri.startsWith("/uploads/")
|
| 42 |
+
&& !uri.startsWith("/video/")) {
|
| 43 |
response.sendRedirect(Routes.USER + "/change-password");
|
| 44 |
return false;
|
| 45 |
}
|
src/main/resources/static/favicon.ico
ADDED
|
|