A free open source IT asset/license management system
Use translation for unauthorized
snipe0f347e845323
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.phpindex 7ca5f57d11..b895b62a52 100644--- a/app/Exceptions/Handler.php+++ b/app/Exceptions/Handler.php@@ -201,7 +201,7 @@ class Handler extends ExceptionHandlerprotected function unauthenticated($request, AuthenticationException $exception){if ($request->expectsJson()) {- return response()->json(['error' => 'Unauthorized or unauthenticated.'], 401);+ return response()->json(['error' => trans('general.unauthorized')], 401);}return redirect()->guest('login');diff --git a/resources/lang/en-US/general.php b/resources/lang/en-US/general.phpindex 09b146b564..264244f565 100644--- a/resources/lang/en-US/general.php+++ b/resources/lang/en-US/general.php@@ -566,6 +566,7 @@ return ['uploaded_files' => 'Uploaded Files','sign_in_place' => 'Sign/Accept in place','sign_in_place_help' => 'Check this box if you have the user present and wish for them to accept the item and sign/accept the EULA (when applicable) right now.',+ 'unauthorized' => 'Unauthorized or unauthenticated.','importer' => ['checked_out_to_fullname' => 'Checked Out to: Full Name','checked_out_to_first_name' => 'Checked Out to: First Name',