mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 13:55:01 +02:00
Move locales to single json files & Replace laravel-vue-i18n with vue-i18n
This commit is contained in:
@ -19,7 +19,7 @@ class WebAuthnManageController extends Controller
|
||||
public function index(Request $request)
|
||||
{
|
||||
if (Gate::denies('manage-webauthn-credentials')) {
|
||||
throw new AccessDeniedHttpException(__('errors.unsupported_with_sso_only'));
|
||||
throw new AccessDeniedHttpException(__('error.unsupported_with_sso_only'));
|
||||
}
|
||||
|
||||
$allUserCredentials = $request->user()->webAuthnCredentials()->WhereEnabled()->get();
|
||||
@ -54,7 +54,7 @@ class WebAuthnManageController extends Controller
|
||||
Log::info('Deletion of security device requested');
|
||||
|
||||
if (Gate::denies('manage-webauthn-credentials')) {
|
||||
throw new AccessDeniedHttpException(__('errors.unsupported_with_sso_only'));
|
||||
throw new AccessDeniedHttpException(__('error.unsupported_with_sso_only'));
|
||||
}
|
||||
|
||||
$user = $request->user();
|
||||
|
Reference in New Issue
Block a user