修复用户登录时的错误
This commit is contained in:
parent
d563c6ae8a
commit
29a5a31bf3
|
@ -172,7 +172,7 @@ class AccountController extends Zend_Controller_Action
|
|||
// success: store database row to auth's storage
|
||||
$data = $authAdapter->getResultRowObject(null,'password');
|
||||
$auth->getStorage()->write($data);
|
||||
$db->query("update users set ts_last_login=now() where username=?",array($u));
|
||||
$db->query($db->quoteInto("update users set ts_last_login=now() where username=?",$u));
|
||||
|
||||
if ($this->_request->getParam('remember')) {
|
||||
$sql="select usertype from users where username='$u'";
|
||||
|
|
Loading…
Reference in New Issue