Skip to content

Commit

Permalink
Merge pull request #59 from sandstorm/prefill-reset-pw
Browse files Browse the repository at this point in the history
FEATURE: Allow to prefill reset password form
  • Loading branch information
skurfuerst authored Jun 29, 2022
2 parents e49e8f6 + d74edf0 commit 683c334
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Classes/Controller/ResetPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ protected function getSubjectResetPassword()
/**
* @Flow\SkipCsrfProtection
*/
public function indexAction()
public function indexAction(string $email = '')
{
$this->view->assign('prefilledEmail', $email);
}

public function initializeRequestTokenAction()
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/ResetPassword/Index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<p>Bitte geben Sie Ihre Email-Adresse ein. Wir schicken Ihnen dann einen Link, mit dem Sie Ihr Passwort zurücksetzen können.</p>
<f:form action="requestToken" method="POST" objectName="resetPasswordFlow">
<f:form.textfield property="email" type="text" placeholder="Email-Adresse oder Benutzername"/>
<f:form.textfield property="email" type="text" placeholder="Email-Adresse oder Benutzername" value="{prefilledEmail}" />
<f:validation.results for="{email}">
<f:if condition="{validationResults.flattenedErrors}">
<dl class="errors">
Expand Down

0 comments on commit 683c334

Please sign in to comment.