Fixed to not display the hashed password in the password field.

This commit is contained in:
Loic d'Anterroches 2008-12-07 09:46:08 +01:00
parent e8d55a5267
commit 8378da5353

View File

@ -120,7 +120,9 @@ class IDF_Views_User
return new Pluf_HTTP_Response_Redirect($url); return new Pluf_HTTP_Response_Redirect($url);
} }
} else { } else {
$form = new IDF_Form_UserAccount($request->user->getData(), $params); $data = $request->user->getData();
unset($data['password']);
$form = new IDF_Form_UserAccount($data, $params);
} }
return Pluf_Shortcuts_RenderToResponse('idf/user/myaccount.html', return Pluf_Shortcuts_RenderToResponse('idf/user/myaccount.html',
array('page_title' => __('Your Account'), array('page_title' => __('Your Account'),