mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 14:24:46 +02:00
Pint
This commit is contained in:
parent
7657364208
commit
5519931ee5
@ -108,7 +108,7 @@ class EditProfile extends \Filament\Pages\Auth\EditProfile
|
|||||||
->hidden(fn () => !cache()->get("users.{$this->getUser()->id}.2fa.tokens"))
|
->hidden(fn () => !cache()->get("users.{$this->getUser()->id}.2fa.tokens"))
|
||||||
->helperText(cache()->get("users.{$this->getUser()->id}.2fa.tokens") .
|
->helperText(cache()->get("users.{$this->getUser()->id}.2fa.tokens") .
|
||||||
' - these will not be shown again!')
|
' - these will not be shown again!')
|
||||||
->label("Backup Tokens:"),
|
->label('Backup Tokens:'),
|
||||||
TextInput::make('2fa-disable-code')
|
TextInput::make('2fa-disable-code')
|
||||||
->label('Disable 2FA')
|
->label('Disable 2FA')
|
||||||
->helperText('Enter your current 2FA code to disable Two Factor Authentication'),
|
->helperText('Enter your current 2FA code to disable Two Factor Authentication'),
|
||||||
@ -118,8 +118,7 @@ class EditProfile extends \Filament\Pages\Auth\EditProfile
|
|||||||
|
|
||||||
['image_url_data' => $url, 'secret' => $secret] = cache()->remember(
|
['image_url_data' => $url, 'secret' => $secret] = cache()->remember(
|
||||||
"users.{$this->getUser()->id}.2fa.state",
|
"users.{$this->getUser()->id}.2fa.state",
|
||||||
now()->addMinutes(5), fn () =>
|
now()->addMinutes(5), fn () => $setupService->handle($this->getUser())
|
||||||
$setupService->handle($this->getUser())
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$options = new QROptions([
|
$options = new QROptions([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user