fix UserSession: login
This commit is contained in:
parent
0d42a96787
commit
1e2cfd59b6
@ -59,7 +59,6 @@ class UserSession {
|
||||
*/
|
||||
public function login($userId, $password, $agent) {
|
||||
|
||||
try {
|
||||
$user = new User($userId);
|
||||
|
||||
// 登入密碼錯誤的話
|
||||
@ -91,11 +90,6 @@ class UserSession {
|
||||
return $token;
|
||||
}
|
||||
}
|
||||
// 沒有找到使用者
|
||||
catch (Exception\UserNoFoundException $e) {
|
||||
echo 'No Found user: '. $e->getUserId();
|
||||
}
|
||||
}
|
||||
|
||||
// ========================================================================
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user