Skip to content

Commit db3dd4c

Browse files
authored
Merge pull request #10 from JamesAlias/3.0
TASK: Allow triggering resetPasswortFlow via arbitrary endpoints
2 parents 08f4a04 + a4e8370 commit db3dd4c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Classes/Sandstorm/UserManagement/Controller/ResetPasswordController.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@ public function indexAction()
6565
{
6666
}
6767

68+
public function initializeRequestTokenAction()
69+
{
70+
$config = $this->arguments->getArgument('resetPasswordFlow')->getPropertyMappingConfiguration();
71+
$config->allowProperties('email');
72+
$config->setTypeConverterOption(
73+
\TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter::class,
74+
\TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED,
75+
TRUE
76+
);
77+
}
78+
6879
/**
6980
* @param ResetPasswordFlow $resetPasswordFlow
7081
*/

0 commit comments

Comments
 (0)