Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/update.php')
-rw-r--r--appinfo/update.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/appinfo/update.php b/appinfo/update.php
index 4900f20b..ecf28c95 100644
--- a/appinfo/update.php
+++ b/appinfo/update.php
@@ -28,3 +28,9 @@ $installedVersion = $config->getAppValue('user_saml', 'installed_version');
if (version_compare($installedVersion, '1.2.1', '<')) {
$config->setAppValue('user_saml', 'general-use_saml_auth_for_desktop', '1');
}
+
+// Versions below 1.2.2 don't have the choice between environment variable or
+// native SAML integration as the default was SAML back then.
+if (version_compare($installedVersion, '1.2.2', '<')) {
+ $config->setAppValue('user_saml', 'type', 'saml');
+}