mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-09 05:08:37 +02:00
fix migration
This commit is contained in:
parent
58958b183b
commit
ec4399f5bc
@ -23,7 +23,7 @@ return new class extends Migration
|
||||
$users = User::all();
|
||||
foreach ($users as $user) {
|
||||
$user->update([
|
||||
'mfa_app_secret' => $user->totp_secret,
|
||||
'mfa_app_secret' => $user->use_totp ? $user->totp_secret : null,
|
||||
'mfa_app_recovery_codes' => null,
|
||||
'mfa_email_enabled' => false,
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user