老用户中有salt字段,重置密码后未清空salt会导致无法登录
This commit is contained in:
parent
a4a6f62c63
commit
bef568c0ce
|
@ -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="尊敬的西部数据中心用户:
|
||||||
|
|
Loading…
Reference in New Issue