From cb7931251b4e34895d26cd00a0e1386ceb75fc9a Mon Sep 17 00:00:00 2001 From: z Date: Mon, 27 Jul 2020 09:29:31 +0800 Subject: [PATCH] * finish task #7535. --- module/common/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index eb614d42c6..20142a69d3 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1742,7 +1742,7 @@ EOD; $isFreepasswd = ($_GET['m'] == 'user' and strtolower($_GET['f']) == 'apilogin' and $_GET['account'] and $entry->freePasswd); if($isFreepasswd) $entry->account = $_GET['account']; - $user = $this->dao->select('*')->from(TABLE_USER)->where('account')->eq($entry->account)->andWhere('deleted')->eq(0)->fetch(); + $user = $this->dao->findByAccount($entry->account)->from(TABLE_USER)->andWhere('deleted')->eq(0)->fetch(); if(!$user) $this->response('INVALID_ACCOUNT'); $this->loadModel('user');