老用户中有salt字段,重置密码后未清空salt会导致无法登录

This commit is contained in:
wlx 2009-12-23 03:30:24 +00:00
parent a4a6f62c63
commit bef568c0ce
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ class AccountController extends Zend_Controller_Action
$tmp_pwd=uniqid(); $tmp_pwd=uniqid();
if ($urow=$uq->fetchObject()) if ($urow=$uq->fetchObject())
{ {
$sql="update users set activation='',password=md5('".$tmp_pwd."') where username=? and activation=?"; $sql="update users set salt='',activation='',password=md5('".$tmp_pwd."') where username=? and activation=?";
$db->query($sql,array($login,$key)); $db->query($sql,array($login,$key));
$mail=new WestdcMailer($this->view->config->smtp); $mail=new WestdcMailer($this->view->config->smtp);
$body="尊敬的西部数据中心用户: $body="尊敬的西部数据中心用户: