CC-3110 : Password reset

added sender email to preferences form, created db upgrade script.
This commit is contained in:
Naomi Aro 2012-04-05 14:18:42 +02:00
parent cf2813a545
commit 0b3809c379
9 changed files with 79 additions and 20 deletions

View file

@ -6,7 +6,7 @@ class Application_Model_Auth {
private function generateToken($action, $user_id)
{
$salt = "pro";
$salt = md5("pro");
$token = self::generateRandomString();
$info = new CcSubjsToken();
@ -25,10 +25,7 @@ class Application_Model_Auth {
$e_link_protocol = empty($_SERVER['HTTPS']) ? "http" : "https";
$e_link_base = $_SERVER['SERVER_NAME'];
$e_link_path = $view->url(array('user_id' => $user->getDbId(),
'token' => $token
),
'password-change');
$e_link_path = $view->url(array('user_id' => $user->getDbId(), 'token' => $token), 'password-change');
$message = "Click this link: {$e_link_protocol}://{$e_link_base}{$e_link_path}";
@ -45,7 +42,7 @@ class Application_Model_Auth {
public function checkToken($user_id, $token, $action)
{
$salt = "pro";
$salt = md5("pro");
$token_info = CcSubjsTokenQuery::create()
->filterByDbAction($action)