Beispiel #1
0
		      	$tempUser = $user_id;
		      }
		      if(!$session->issetValue('TMSP_'.$user_id) or $session->getValue('TMSP_'.$user_id) < getCurrentDateTimeMinusSecondsInMySQL($current_context->getLockTimeInterval())){
		      	$session->setValue('TMSP_'.$user_id, getCurrentDateTimeInMySQL());
		      }
		      $count = $session->getValue('countWrongPassword');
		      // Password tempLock ende
	      }
	      if ( !isset($session) ) {
	         $session = new cs_session_item();
	         $session->createSessionID('guest');
	         //Password tempLock
	         $session->setValue('countWrongPassword', 1);
	      } else {
      	if($portal_item->isTemporaryLockActivated()){
		       	$count = $session->getValue('countWrongPassword');
		       	if(!isset($count) AND empty($count)){
		       		$session->setValue('countWrongPassword', 1);
		       	}
		       	if(!isset($count)){
		       		$count = 0;
		       	}
		       	if($user_id == $tempUser){
		       		$count++;
		       	} else {
		       		$count = 0;
		       		$session->setValue('countWrongPassword', 0);
		       		$session->setValue('userid', $user_id);
		       	}
		       	$trys_login = $current_context->getTryUntilLock();
		       	if(empty($trys_login)){