1
0
mirror of https://e.coding.net/circlecloud/McAccount.git synced 2025-09-05 07:27:21 +00:00

fix many bugs...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2015-10-13 19:29:11 +08:00
parent 056187c79f
commit 7f19057e1a
14 changed files with 197 additions and 715 deletions

View File

@ -40,7 +40,6 @@ class authme extends AmysqlModel {
}
public function login($username, $password) {
if ($this->_sum ( "SELECT * FROM `authme` WHERE `username` = '$username' AND `password` = '$password'" ) == 0)
return false;
else
return true;
@ -49,7 +48,6 @@ class authme extends AmysqlModel {
$key = array (
"password" => $newpass
);
$num = $this->_update ( 'authme', $key, "WHERE username='" . $username . "'" );
if ($num == 0)
return false;