From 86043833d4c6582371ea361f2c9264e460daea97 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 11 Nov 2020 15:59:19 +0100 Subject: [PATCH] Add multifactor\Setup class for stronger typing --- .../templates/multifactorAuthentication.tpl | 6 +- .../files/lib/data/user/User.class.php | 23 ---- .../MultifactorAuthenticationForm.class.php | 39 +++--- .../lib/form/MultifactorManageForm.class.php | 70 ++-------- .../lib/page/AccountSecurityPage.class.php | 10 +- .../lib/system/request/LinkHandler.class.php | 4 + .../BackupMultifactorMethod.class.php | 32 ++--- .../multifactor/IMultifactorMethod.class.php | 10 +- .../system/user/multifactor/Setup.class.php | 128 ++++++++++++++++++ .../TotpMultifactorMethod.class.php | 34 ++--- 10 files changed, 213 insertions(+), 143 deletions(-) create mode 100644 wcfsetup/install/files/lib/system/user/multifactor/Setup.class.php diff --git a/com.woltlab.wcf/templates/multifactorAuthentication.tpl b/com.woltlab.wcf/templates/multifactorAuthentication.tpl index 2570189b5f..fbcefda83b 100644 --- a/com.woltlab.wcf/templates/multifactorAuthentication.tpl +++ b/com.woltlab.wcf/templates/multifactorAuthentication.tpl @@ -5,9 +5,9 @@