Correctly request an account confirmation when trying to recover the password of a not yet activated account.

This commit is contained in:
Loic d'Anterroches
2010-02-15 22:40:34 +01:00
parent 96e8f4ae3c
commit 52be41186f
3 changed files with 53 additions and 23 deletions

View File

@@ -183,6 +183,8 @@ class IDF_Views
* email is available in the database, send an email with a key to
* reset the password.
*
* If the user is not yet confirmed, send the confirmation key one
* more time.
*/
function passwordRecoveryAsk($request, $match)
{
@@ -190,8 +192,7 @@ class IDF_Views
if ($request->method == 'POST') {
$form = new IDF_Form_Password($request->POST);
if ($form->isValid()) {
$form->save();
$url = Pluf_HTTP_URL_urlForView('IDF_Views::passwordRecoveryInputCode');
$url = $form->save();
return new Pluf_HTTP_Response_Redirect($url);
}
} else {