From 342d87d0228d89cb0a4a4305984b720754d42624 Mon Sep 17 00:00:00 2001 From: Kevin Decherf Date: Wed, 23 Jul 2025 16:42:06 +0200 Subject: [PATCH] fixup! Add a two-step setup of OTP Signed-off-by: Kevin Decherf --- migrations/Version20250413133131.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migrations/Version20250413133131.php b/migrations/Version20250413133131.php index cf77e87e3..f904ee81a 100644 --- a/migrations/Version20250413133131.php +++ b/migrations/Version20250413133131.php @@ -22,6 +22,8 @@ final class Version20250413133131 extends WallabagMigration 'default' => false, 'notnull' => true, ]); + + $this->addSql("UPDATE " . $this->getTable('user') . " SET google_authenticator = 1 WHERE googleAuthenticatorSecret IS NOT NULL AND googleAuthenticatorSecret <> '';"); } public function down(Schema $schema): void