diff options
author | jld3103 <jld3103yt@gmail.com> | 2023-03-31 08:53:56 +0200 |
---|---|---|
committer | jld3103 <jld3103yt@gmail.com> | 2023-04-05 09:08:56 +0200 |
commit | d9f85220038b2421870a36f9b6a860d6444a988a (patch) | |
tree | 10b8cbdb0c0ded7947b50654a4e1d4a30390768a /apps/user_ldap/lib/User | |
parent | 54140dd6bfda81276bd889a9a141d51e328100d1 (diff) | |
download | nextcloud-server-d9f85220038b2421870a36f9b6a860d6444a988a.tar.gz nextcloud-server-d9f85220038b2421870a36f9b6a860d6444a988a.zip |
Fix types for reading and writing config values
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'apps/user_ldap/lib/User')
-rw-r--r-- | apps/user_ldap/lib/User/User.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php index 15894ce04b7..edf43494777 100644 --- a/apps/user_ldap/lib/User/User.php +++ b/apps/user_ldap/lib/User/User.php @@ -303,7 +303,7 @@ class User { } if (!is_null($attr) - && $this->config->getAppValue('user_ldap', 'enforce_home_folder_naming_rule', true) + && $this->config->getAppValue('user_ldap', 'enforce_home_folder_naming_rule', 'true') ) { // a naming rule attribute is defined, but it doesn't exist for that LDAP user throw new \Exception('Home dir attribute can\'t be read from LDAP for uid: ' . $this->getUsername()); @@ -355,7 +355,7 @@ class User { */ public function markLogin() { $this->config->setUserValue( - $this->uid, 'user_ldap', self::USER_PREFKEY_FIRSTLOGIN, 1); + $this->uid, 'user_ldap', self::USER_PREFKEY_FIRSTLOGIN, '1'); } /** |