=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/listener/AuthenticationListener.java' --- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/listener/AuthenticationListener.java 2013-12-18 13:58:51 +0000 +++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/listener/AuthenticationListener.java 2013-12-18 14:27:32 +0000 @@ -33,7 +33,7 @@ import org.springframework.context.ApplicationEvent; import org.springframework.context.ApplicationListener; import org.springframework.security.authentication.event.AbstractAuthenticationFailureEvent; -import org.springframework.security.authentication.event.AuthenticationFailureExpiredEvent; +import org.springframework.security.authentication.event.AuthenticationFailureCredentialsExpiredEvent; import org.springframework.security.authentication.event.AuthenticationSuccessEvent; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.web.authentication.WebAuthenticationDetails; @@ -85,9 +85,9 @@ userService.setLastLogin( username ); } - else if ( applicationEvent instanceof AuthenticationFailureExpiredEvent ) + else if ( applicationEvent instanceof AuthenticationFailureCredentialsExpiredEvent ) { - AuthenticationFailureExpiredEvent event = (AuthenticationFailureExpiredEvent) applicationEvent; + AuthenticationFailureCredentialsExpiredEvent event = (AuthenticationFailureCredentialsExpiredEvent) applicationEvent; WebAuthenticationDetails details = (WebAuthenticationDetails) event.getAuthentication().getDetails(); === modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/security.xml' --- dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/security.xml 2013-12-18 14:20:55 +0000 +++ dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/security.xml 2013-12-18 14:27:32 +0000 @@ -48,7 +48,8 @@ class="org.springframework.security.web.authentication.ExceptionMappingAuthenticationFailureHandler"> - /dhis-web-commons/security/login.action?expired=true + /dhis-web-commons/security/login.action?expired1=true + /dhis-web-commons/security/login.action?expired2=true