Skip to content

Commit 4e26bef

Browse files
committed
fix impersonation
1 parent 82fe24c commit 4e26bef

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

demo/app/Providers/DemoSharpServiceProvider.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ protected function configureSharp(SharpConfigBuilder $config): void
2323
->setSharpMenu(SharpMenu::class)
2424
->setThemeColor('#004c9b')
2525
->setThemeLogo(logoUrl: '/img/sharp/logo.svg', logoHeight: '1rem', faviconUrl: '/img/sharp/favicon-32x32.png')
26-
// ->enableImpersonation()
2726
->enableForgottenPassword()
2827
->setAuthCustomGuard('web')
2928
->enable2faCustom(Demo2faNotificationHandler::class)
3029
->enableLoginRateLimiting(maxAttempts: 3)
31-
->when(config('demo.enable_passkeys'))->enablePasskeys()
30+
->when(config('demo.enable_passkeys'),
31+
fn () => $config->enablePasskeys(),
32+
fn () => $config->enableImpersonation()
33+
)
3234
->setLoginAttributes('email', 'password')
3335
->setUserDisplayAttribute('name')
3436
->setUserAvatarAttribute(fn () => auth()->user()->avatar?->thumbnail(200))

resources/lang/fr/pages/auth/login.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
'code_field' => 'Code',
99
'remember' => 'Rester connecté',
1010
'button' => 'Connexion',
11+
'or_label' => 'ou',
1112
'passkey_button' => 'Utiliser une clé d’accès',
1213
'forgot_password_link' => 'Mot de passe oublié ?',
1314
];

0 commit comments

Comments
 (0)