Fixed capitalised usernames creating account duplicates in backend (re-login required)
This commit is contained in:
parent
6d8a5af7cd
commit
3c069d7f60
@ -28,13 +28,13 @@ class _LoginState extends State<Login> {
|
|||||||
await AccountData().removeData();
|
await AccountData().removeData();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await AccountData().setData(data.name, data.password);
|
await AccountData().setData(data.name.toLowerCase(), data.password);
|
||||||
await GetRoom(
|
await GetRoom(
|
||||||
GetRoomParams(
|
GetRoomParams(
|
||||||
includeStatus: false,
|
includeStatus: false,
|
||||||
),
|
),
|
||||||
).run().then((value) async {
|
).run().then((value) async {
|
||||||
await AccountData().setData(data.name, data.password);
|
await AccountData().setData(data.name.toLowerCase(), data.password);
|
||||||
setState(() {
|
setState(() {
|
||||||
displayDisclaimerText = false;
|
displayDisclaimerText = false;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user