TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
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 23 of file SaltedPasswordsUtility.php.

Member Function Documentation

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 80 of file SaltedPasswordsUtility.php.

References SaltFactory\getSaltingInstance().

static 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 111 of file SaltedPasswordsUtility.php.

References $extConf.

Referenced by SaltedPasswordService\compareUident(), SaltFactory\determineSaltingHashingMethod(), SaltFactory\getSaltingInstance(), and SaltFactoryTest\resettingFactoryInstanceSucceeds().

static getNumberOfBackendUsersWithInsecurePassword ( )
static

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

Returns
int

Definition at line 35 of file SaltedPasswordsUtility.php.

References GeneralUtility\makeInstance().

Referenced by SaltedPasswordsUtilityTest\checkIfNumberOfBackendUsersWithInsecurePasswordsIsFetchedCorrectly().

static 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 128 of file SaltedPasswordsUtility.php.

References $extConf, and $GLOBALS.

static 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 59 of file SaltedPasswordsUtility.php.

References $GLOBALS.

Referenced by SaltedPasswordService\init().

static returnExtConfDefaults ( )
static

Returns default configuration of this extension.

Returns
array Default extension configuration data for localconf.php

Definition at line 93 of file SaltedPasswordsUtility.php.

Member Data Documentation

const EXTKEY = 'saltedpasswords'

Keeps this extension's key.

Definition at line 28 of file SaltedPasswordsUtility.php.