From 2ab9572d0569ebfe7d26dd4314021b20cbc60871 Mon Sep 17 00:00:00 2001 From: akhil Date: Thu, 14 Jan 2021 17:21:51 +0530 Subject: [PATCH] Added fix for username case --- patches/002-login-without-domain.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/002-login-without-domain.patch b/patches/002-login-without-domain.patch index bd0619a5..96862b1a 100644 --- a/patches/002-login-without-domain.patch +++ b/patches/002-login-without-domain.patch @@ -4,7 +4,7 @@ return $this->generateRedirect($redirect_url); } -+ $user = trim($user); ++ $user = mb_strtolower(trim($user), "UTF-8"); + $domain = $this->config->getSystemValue("mail_domain"); + $domain_suffix = "@$domain"; + $admin_username = $_ENV["NEXTCLOUD_ADMIN_USER"]; -- GitLab