diff --git a/patches/002-login-without-domain.patch b/patches/002-login-without-domain.patch index ff52c4c01922c29bf0cf8678c50302922a47ec9f..847c5635905d19ece282fc91d83c6c3a642a155f 100644 --- a/patches/002-login-without-domain.patch +++ b/patches/002-login-without-domain.patch @@ -45,9 +45,9 @@ diff --git ./core/Controller/LoginController.php ./core/Controller/LoginControll $uid = $loginName; + $uid = trim($uid); + $uid = mb_strtolower($uid, 'UTF-8'); -+ $domain = $this->config->getSystemValue('mail_domain', ''); ++ $domain = \OC::$server->getConfig()->getSystemValue('mail_domain', ''); + $domain_suffix = !empty($domain) ? '@' . $domain : ''; -+ $alt_domain = $this->config->getSystemValue('alt_mail_domain', ''); ++ $alt_domain = \OC::$server->getConfig()->getSystemValue('alt_mail_domain', ''); + $alt_domain_suffix = !empty($alt_domain) ? '@' . $alt_domain : ''; + $admin_username = $_ENV["NEXTCLOUD_ADMIN_USER"]; + $is_admin = strcmp($uid, $admin_username) === 0;