Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f5b1fe4 authored by Akhil's avatar Akhil 🙂
Browse files

lowercase username before checking if it is available too

parent e63224a5
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -224,6 +224,7 @@ class AccountController extends Controller {
		}

		try {
			$username = mb_strtolower($username, 'UTF-8');
			if (!$this->userService->userExists($username) && !$this->userService->isUsernameTaken($username)) {
				$response->setStatus(200);
				$this->session->set(self::SESSION_USERNAME_CHECK, true);