|
|
|
@ -33,7 +33,7 @@ class AuthApiController extends BaseAuthApiController |
|
|
|
|
return response()->json(['status' =>false, 'msg' => 'Email hoặc SDT chưa được đăng ký.'], parent::HTTP_OK); |
|
|
|
|
} |
|
|
|
|
if (!Auth::attempt(['id' => $user->id, 'password' => $request->password])) { |
|
|
|
|
return response()->json(['Tài khoản hoặc mật khẩu không chính xác. Vui lòng thử lại.'], parent::HTTP_OK); |
|
|
|
|
return response()->json(['status' =>false, 'msg' =>'Tài khoản hoặc mật khẩu không chính xác. Vui lòng thử lại.'], parent::HTTP_OK); |
|
|
|
|
} |
|
|
|
|
$user = User::find($user->id); |
|
|
|
|
|
|
|
|
|