|
@@ -68,19 +68,36 @@ public class LifeCenterInterCeptor extends HandlerInterceptorAdapter {
|
|
|
} else {
|
|
|
logger.info( "IP : " + LifeCenterFunction.getRemoteAddr( request ) + " ID : " + session.toString() + " URL : " + url + " Port : " + port );
|
|
|
|
|
|
- if( sesPasswordChange != null && sesPasswordChange.equals( "true" ) ) {
|
|
|
-
|
|
|
- if( !url.equals( "/staff/myinfo" ) ) {
|
|
|
- logger.info( "초기화 비밀번호로 로그인 -> 비밀번호 변경 페이지로 이동" );
|
|
|
+
|
|
|
+
|
|
|
+ if( sesPasswordChange != null ) {
|
|
|
+ if( sesPasswordChange.equals( "REQUIRED" ) ) {
|
|
|
|
|
|
- if( !url.equals( "/common/passwordCheck" ) && !url.equals( "/staff/myinfo/update" ) ) {
|
|
|
- LifeCenterFunction.scriptMessage( response, "location.href='/staff/myinfo';" );
|
|
|
+ if( !url.equals( "/staff/myinfo" ) ) {
|
|
|
+ logger.info( "비밀번호 변경 필요 -> 비밀번호 변경 페이지로 이동" );
|
|
|
+
|
|
|
+ if( !url.equals( "/common/passwordCheck" ) && !url.equals( "/staff/myinfo/update" ) && !url.equals( "/login/logout" ) ) {
|
|
|
+ LifeCenterFunction.scriptMessage( response, "location.href='/staff/myinfo';" );
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ LifeCenterFunction.scriptMessage( response, "alertBox({ txt: '비밀번호 보안 규정 변경으로 인하여 의무적으로 비밀번호 1회 변경 진행 후 서비스 이용이 가능합니다.', callBack : function(){ } });" );
|
|
|
}
|
|
|
- } else {
|
|
|
- LifeCenterFunction.scriptMessage( response, "alertBox({ txt: '초기화 비밀번호로 로그인시 비밀번호 변경 후 서비스 이용이 가능합니다.', callBack : function(){ } });" );
|
|
|
+
|
|
|
+ } else if( sesPasswordChange.equals( "RESET" ) ) {
|
|
|
+
|
|
|
+ if( !url.equals( "/staff/myinfo" ) ) {
|
|
|
+ logger.info( "초기화 비밀번호로 로그인 -> 비밀번호 변경 페이지로 이동" );
|
|
|
+
|
|
|
+ if( !url.equals( "/common/passwordCheck" ) && !url.equals( "/staff/myinfo/update" ) && !url.equals( "/login/logout" ) ) {
|
|
|
+ LifeCenterFunction.scriptMessage( response, "location.href='/staff/myinfo';" );
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ LifeCenterFunction.scriptMessage( response, "alertBox({ txt: '초기화 비밀번호로 로그인시 비밀번호 변경 후 서비스 이용이 가능합니다.', callBack : function(){ } });" );
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
} else if( url.equals( "/login/staff" ) || url.equals( "/login/admin" ) ) {
|