mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-17 09:01:06 +02:00
Move locales to single json files & Replace laravel-vue-i18n with vue-i18n
This commit is contained in:
@ -18,7 +18,7 @@ class PersonalAccessTokenController extends PassportPatController
|
||||
public function forUser(Request $request)
|
||||
{
|
||||
if (Gate::denies('manage-pat')) {
|
||||
throw new AccessDeniedHttpException(__('errors.unsupported_with_sso_only'));
|
||||
throw new AccessDeniedHttpException(__('error.unsupported_with_sso_only'));
|
||||
}
|
||||
|
||||
return parent::forUser($request);
|
||||
@ -33,7 +33,7 @@ class PersonalAccessTokenController extends PassportPatController
|
||||
public function store(Request $request)
|
||||
{
|
||||
if (Gate::denies('manage-pat')) {
|
||||
throw new AccessDeniedHttpException(__('errors.unsupported_with_sso_only'));
|
||||
throw new AccessDeniedHttpException(__('error.unsupported_with_sso_only'));
|
||||
}
|
||||
|
||||
return parent::store($request);
|
||||
@ -49,7 +49,7 @@ class PersonalAccessTokenController extends PassportPatController
|
||||
public function destroy(Request $request, $tokenId)
|
||||
{
|
||||
if (Gate::denies('manage-pat')) {
|
||||
throw new AccessDeniedHttpException(__('errors.unsupported_with_sso_only'));
|
||||
throw new AccessDeniedHttpException(__('error.unsupported_with_sso_only'));
|
||||
}
|
||||
|
||||
return parent::destroy($request, $tokenId);
|
||||
|
Reference in New Issue
Block a user