|
@@ -20,7 +20,7 @@ class AccountManager {
|
|
|
public function __construct() {
|
|
public function __construct() {
|
|
|
$this->model = lm('account', 'Commons');
|
|
$this->model = lm('account', 'Commons');
|
|
|
echo 1;
|
|
echo 1;
|
|
|
- $this->repository = new AccountRepository();
|
|
|
|
|
|
|
+// $this->repository = new AccountRepository();
|
|
|
echo 2;
|
|
echo 2;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -33,7 +33,7 @@ class AccountManager {
|
|
|
*/
|
|
*/
|
|
|
public function login($account, $password) {
|
|
public function login($account, $password) {
|
|
|
|
|
|
|
|
- echo 3;exit;
|
|
|
|
|
|
|
+ echo 3;
|
|
|
$password = trim($password);
|
|
$password = trim($password);
|
|
|
$account = strtolower(trim($account));
|
|
$account = strtolower(trim($account));
|
|
|
define("OVERTIME", 1800);
|
|
define("OVERTIME", 1800);
|