// 1.: Get the plain password
$plainPassword = $this->getRequestInstance()->getRequestElement($requestKey);
// 2. Get a crypto helper and hash the password
- $this->hashedPassword = ObjectFactory::createObjectByConfiguredName('crypto_heler')->hashPassword($plainPassword);
+ $this->hashedPassword = ObjectFactory::createObjectByConfiguredName('crypto_class')->hashPassword($plainPassword);
// 3. Store the hash back in the request
$this->getRequestInstance()->setRequestElement('pass_hash', $this->hashedPassword);
}
*/
public function registerNewUser () {
// Get a user database wrapper
- $wrapperInstance = ObjectFactory::createObjectByConfiguredName('user_db_wrapper');
+ $wrapperInstance = ObjectFactory::createObjectByConfiguredName('user_db_wrapper_class');
// Use this instance to insert the whole registration instance
$wrapperInstance->insertRegistrationObject($this);
*/
public function doPostAction () {
// Get an action instance from our factory
- $actionInstance = ObjectFactory::createObjectByConfiguredName('post_registration_action');
+ $actionInstance = ObjectFactory::createObjectByConfiguredName('post_registration_class');
// Execute the action
$actionInstance->execute($this->getRequestInstance(), $this->getResponseInstance());