You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by at...@apache.org on 2005/04/24 14:34:28 UTC
cvs commit: jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl DefaultCredentialHandler.java
ate 2005/04/24 05:34:28
Modified: components/security/src/java/org/apache/jetspeed/security/spi/impl
DefaultCredentialHandler.java
Log:
Reset the authenticationFailures if a PasswordCredential is re-enabled
Revision Changes Path
1.15 +1 -0 jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/DefaultCredentialHandler.java
Index: DefaultCredentialHandler.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/DefaultCredentialHandler.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- DefaultCredentialHandler.java 7 Mar 2005 14:05:45 -0000 1.14
+++ DefaultCredentialHandler.java 24 Apr 2005 12:34:28 -0000 1.15
@@ -244,6 +244,7 @@
if ( credential != null && !credential.isExpired() && credential.isEnabled() != enabled )
{
credential.setEnabled(enabled);
+ credential.setAuthenticationFailures(0);
internalUser.setModifiedDate(new Timestamp(new Date().getTime()));
securityAccess.setInternalUserPrincipal(internalUser, false);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org