From 431e19e0b1edaaf0bc685b28c83c31d4d5fddd97 Mon Sep 17 00:00:00 2001 From: Akhil Date: Tue, 16 Aug 2022 20:24:14 +0530 Subject: [PATCH] Fix web authn login regression --- patches/002-login-without-domain.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/002-login-without-domain.patch b/patches/002-login-without-domain.patch index ff52c4c0..847c5635 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; -- GitLab