From 3c069d7f60b06b81106b22aeea1c24194629b733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20M=C3=BCller?= Date: Wed, 18 Oct 2023 20:59:10 +0200 Subject: [PATCH] Fixed capitalised usernames creating account duplicates in backend (re-login required) --- lib/view/login/login.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/view/login/login.dart b/lib/view/login/login.dart index 81806d7..6b597a5 100644 --- a/lib/view/login/login.dart +++ b/lib/view/login/login.dart @@ -28,13 +28,13 @@ class _LoginState extends State { await AccountData().removeData(); try { - await AccountData().setData(data.name, data.password); + await AccountData().setData(data.name.toLowerCase(), data.password); await GetRoom( GetRoomParams( includeStatus: false, ), ).run().then((value) async { - await AccountData().setData(data.name, data.password); + await AccountData().setData(data.name.toLowerCase(), data.password); setState(() { displayDisclaimerText = false; });