maxkey-core/src/main/java/org/maxkey/persistence/db/PasswordPolicyValidator.java
/**
   * reset BadPasswordCount And Lockout
    * 
    * @param userInfo
    */
reset BadPasswordCount And Lockout

@param userInfo
reset BadPasswordCount And Lockout @param userInfo
public void resetAttempts(UserInfo userInfo) {
       try {
           if (userInfo != null && StringUtils.isNotEmpty(userInfo.getId())) {
               jdbcTemplate.update(BADPASSWORDCOUNT_RESET_UPDATE_STATEMENT,
                       new Object[] { 0, ConstantsStatus.ACTIVE, new Date(), userInfo.getId() },
                       new int[] { Types.INTEGER, Types.INTEGER, Types.TIMESTAMP, Types.VARCHAR });
               userInfo.setIsLocked(ConstantsStatus.ACTIVE);
           }
       } catch (Exception e) {
           _logger.error("resetAttempts Exception",e);
       }
   }
public void resetAttempts ( UserInfo userInfo ) { try { if ( userInfo != null && StringUtils . isNotEmpty ( userInfo . getId ( ) ) ) { jdbcTemplate . update ( BADPASSWORDCOUNT_RESET_UPDATE_STATEMENT , new Object [ ] { 0 , ConstantsStatus . ACTIVE , new Date ( ) , userInfo . getId ( ) } , new int [ ] { Types . INTEGER , Types . INTEGER , Types . TIMESTAMP , Types . VARCHAR } ) ; userInfo . setIsLocked ( ConstantsStatus . ACTIVE ) ; } } catch ( Exception e ) { _logger . error ( "resetAttempts Exception" , e ) ; } }
reset BadPasswordCount And Lockout
reset BadPasswordCount And Lockout