fix UserSession: login

This commit is contained in:
Yuan Chiu 2014-11-13 22:20:50 +08:00
parent 0d42a96787
commit 1e2cfd59b6

View File

@ -59,7 +59,6 @@ class UserSession {
*/ */
public function login($userId, $password, $agent) { public function login($userId, $password, $agent) {
try {
$user = new User($userId); $user = new User($userId);
// 登入密碼錯誤的話 // 登入密碼錯誤的話
@ -91,11 +90,6 @@ class UserSession {
return $token; return $token;
} }
} }
// 沒有找到使用者
catch (Exception\UserNoFoundException $e) {
echo 'No Found user: '. $e->getUserId();
}
}
// ======================================================================== // ========================================================================