TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility Class Reference

Public Member Functions

 feloginForgotPasswordHook (array &$params, \TYPO3\CMS\Felogin\Controller\FrontendLoginController $pObj)
 

Static Public Member Functions

static getNumberOfBackendUsersWithInsecurePassword ()
 
static returnExtConf ($mode=TYPO3_MODE)
 
static returnExtConfDefaults ()
 
static getDefaultSaltingHashingMethod ($mode=TYPO3_MODE)
 
static isUsageEnabled ($mode=TYPO3_MODE)
 

Public Attributes

const EXTKEY = 'saltedpasswords'
 

Detailed Description

General library class.

Definition at line 20 of file SaltedPasswordsUtility.php.

Member Function Documentation

◆ feloginForgotPasswordHook()

TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility::feloginForgotPasswordHook ( array &  $params,
\TYPO3\CMS\Felogin\Controller\FrontendLoginController  $pObj 
)

Hook function for felogin "forgotPassword" functionality encrypts the new password before storing in database

Parameters
array$paramsParameter the hook delivers
\TYPO3\CMS\Felogin\Controller\FrontendLoginController$pObjParent Object from which the hook is called
Returns
void

Definition at line 71 of file SaltedPasswordsUtility.php.

References TYPO3\CMS\Saltedpasswords\Salt\SaltFactory\getSaltingInstance().

◆ getDefaultSaltingHashingMethod()

static TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility::getDefaultSaltingHashingMethod (   $mode = TYPO3_MODE)
static

Function determines the default(=configured) type of salted hashing method to be used.

Parameters
string$mode(optional) The TYPO3 mode (FE or BE) saltedpasswords shall be used for
Returns
string Classname of object to be used

Definition at line 102 of file SaltedPasswordsUtility.php.

References $extConf.

Referenced by TYPO3\CMS\Saltedpasswords\SaltedPasswordService\compareUident(), TYPO3\CMS\Saltedpasswords\Salt\SaltFactory\determineSaltingHashingMethod(), TYPO3\CMS\Saltedpasswords\Salt\SaltFactory\getSaltingInstance(), and TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt\SaltFactoryTest\resettingFactoryInstanceSucceeds().

◆ getNumberOfBackendUsersWithInsecurePassword()

static TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility::getNumberOfBackendUsersWithInsecurePassword ( )
static

Calculates number of backend users, who have no saltedpasswords protection.

Returns
int

Definition at line 33 of file SaltedPasswordsUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Reports\Report\Status\SecurityStatus\isMemcachedUsed().

◆ isUsageEnabled()

static TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility::isUsageEnabled (   $mode = TYPO3_MODE)
static

Returns information if salted password hashes are indeed used in the TYPO3_MODE.

Parameters
string$mode(optional) The TYPO3 mode (FE or BE) saltedpasswords shall be used for
Returns
bool TRUE, if salted password hashes are used in the TYPO3_MODE, otherwise FALSE

Definition at line 119 of file SaltedPasswordsUtility.php.

References $extConf, and $GLOBALS.

Referenced by TYPO3\CMS\Scheduler\Controller\SchedulerModuleController\checkSchedulerUser(), and TYPO3\CMS\Saltedpasswords\Evaluation\Evaluator\returnFieldJS().

◆ returnExtConf()

static TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility::returnExtConf (   $mode = TYPO3_MODE)
static

Returns extension configuration data from $TYPO3_CONF_VARS (configurable in Extension Manager)

Parameters
string$modeTYPO3_MODE, whether Configuration for Frontend or Backend should be delivered
Returns
array Extension configuration data

Definition at line 50 of file SaltedPasswordsUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Saltedpasswords\SaltedPasswordService\init().

◆ returnExtConfDefaults()

static TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility::returnExtConfDefaults ( )
static

Returns default configuration of this extension.

Returns
array Default extension configuration data for localconf.php

Definition at line 84 of file SaltedPasswordsUtility.php.

Member Data Documentation

◆ EXTKEY

const TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility::EXTKEY = 'saltedpasswords'

Keeps this extension's key.

Definition at line 25 of file SaltedPasswordsUtility.php.