Added signals when the user updates his password.

This commit is contained in:
Loic d'Anterroches
2008-12-01 13:35:17 +01:00
parent 9c5156e6ef
commit d1911339d7
4 changed files with 71 additions and 4 deletions

View File

@@ -41,6 +41,7 @@ class IDF_Views_User
// As the password is salted, we can directly take the sha1 of
// the salted password.
$api_key = sha1($request->user->password);
$ext_pass = substr(sha1($request->user->password.Pluf::f('secret_key')), 0, 8);
$params = array('user' => $request->user);
if ($request->method == 'POST') {
$form = new IDF_Form_UserAccount($request->POST, $params);
@@ -56,6 +57,7 @@ class IDF_Views_User
return Pluf_Shortcuts_RenderToResponse('idf/user/myaccount.html',
array('page_title' => __('Your Account'),
'api_key' => $api_key,
'ext_pass' => $ext_pass,
'form' => $form),
$request);
}