From e404c03fba3f2ef71a65b1d9041bf9024e66503f Mon Sep 17 00:00:00 2001 From: Jan Kristinus Date: Thu, 12 Sep 2024 14:07:05 +0200 Subject: [PATCH] CS --- plugins/auth/boot.php | 1 - plugins/auth/install.php | 2 +- plugins/auth/pages/settings.php | 4 ++-- .../ytemplates/bootstrap/value.ycom_auth_otp_setup.tpl.php | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/auth/boot.php b/plugins/auth/boot.php index edcac20..ae641c9 100644 --- a/plugins/auth/boot.php +++ b/plugins/auth/boot.php @@ -99,4 +99,3 @@ } }); } - diff --git a/plugins/auth/install.php b/plugins/auth/install.php index 51ed77c..0d44f9f 100644 --- a/plugins/auth/install.php +++ b/plugins/auth/install.php @@ -27,7 +27,7 @@ ->ensureColumn(new rex_sql_column('starttime', 'datetime')) ->ensureColumn(new rex_sql_column('last_activity', 'datetime')) ->ensureColumn(new rex_sql_column('last_activity', 'datetime')) - ->ensureColumn(new rex_sql_column('otp_verified', 'tinyint(1)', false, 0)) + ->ensureColumn(new rex_sql_column('otp_verified', 'tinyint(1)', false, '0')) ->ensureColumn(new rex_sql_column('cookie_key', 'varchar(255)', true)) ->ensureIndex(new rex_sql_index('cookie_key', ['cookie_key'], rex_sql_index::UNIQUE)) ->setPrimaryKey('session_id') diff --git a/plugins/auth/pages/settings.php b/plugins/auth/pages/settings.php index f38db2d..0657de9 100644 --- a/plugins/auth/pages/settings.php +++ b/plugins/auth/pages/settings.php @@ -30,7 +30,7 @@ $this->setConfig('session_max_overall_duration', rex_request('session_max_overall_duration', 'int')); $this->setConfig('session_duration', rex_request('session_duration', 'int')); - foreach(rex_ycom_auth::getInjections() as $injection) { + foreach (rex_ycom_auth::getInjections() as $injection) { $injection->triggerSaveSettings(); } @@ -240,7 +240,7 @@ '; -foreach(rex_ycom_auth::getInjections() as $injection) { +foreach (rex_ycom_auth::getInjections() as $injection) { $content .= $injection->getSettingsContent(); } diff --git a/plugins/auth/ytemplates/bootstrap/value.ycom_auth_otp_setup.tpl.php b/plugins/auth/ytemplates/bootstrap/value.ycom_auth_otp_setup.tpl.php index f6b293a..069ce46 100644 --- a/plugins/auth/ytemplates/bootstrap/value.ycom_auth_otp_setup.tpl.php +++ b/plugins/auth/ytemplates/bootstrap/value.ycom_auth_otp_setup.tpl.php @@ -76,6 +76,7 @@ break; case 'totp': + default: $defaultOption = 'totp'; $otpMethod = new rex_ycom_otp_method_totp(); break;