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:
authorLukas Reschke <lukas@statuscode.ch>2017-09-18 15:11:43 +0300
committerLukas Reschke <lukas@statuscode.ch>2017-09-18 15:11:43 +0300
commit54804783c2c9bd99c68cc259007c25647428dd1e (patch)
treea2020c2deccd74ed3bacab91815a6dca220d849a /lib/UserBackend.php
parent3eceb2cc566db8e6797457949a42ecd95dc05250 (diff)
Add logout attribute for < 12.0.3
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/UserBackend.php')
-rw-r--r--lib/UserBackend.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/UserBackend.php b/lib/UserBackend.php
index 73536b29..1eb8ac6a 100644
--- a/lib/UserBackend.php
+++ b/lib/UserBackend.php
@@ -338,6 +338,15 @@ class UserBackend implements IApacheBackend, UserInterface, IUserBackend {
}
/**
+ * Logout attribute for Nextcloud < 12.0.3
+ *
+ * @return string
+ */
+ public function getLogoutAttribute() {
+ return 'style="display:none;"';
+ }
+
+ /**
* Return the id of the current user
* @return string
* @since 6.0.0