Skip to content

Commit e17e7aa

Browse files
authored
Merge pull request #66 from openclassify/vedatakd
update exception && fix deleted account with login
2 parents 8d3a10a + 43d83bc commit e17e7aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Exceptions/ExceptionHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function report(Throwable $e)
9696
die;
9797
}
9898

99-
if (\request()->is('api/*')) {
99+
if (\request()->is('api/*') or \request()->is('oauth-api/*')) {
100100
if ($e instanceof AuthenticationException or $e instanceof \League\OAuth2\Server\Exception\OAuthServerException) {
101101
return $this->unauthenticated(\request(), $e);
102102
}
@@ -105,7 +105,6 @@ public function report(Throwable $e)
105105

106106
$error_list = trans("visiosoft.module.connect::errors");
107107

108-
109108
$message = (!array_value($error_list, $error_code)) ? $e->getMessage() : trans("visiosoft.module.connect::errors." . $error_code);
110109

111110
if (strlen($error_code) > 3 || $error_code == 0) {

0 commit comments

Comments
 (0)