Skip to content

Commit

Permalink
feat: force username uppercase in login
Browse files Browse the repository at this point in the history
  • Loading branch information
abc873693 committed Sep 13, 2024
1 parent 8e6fdb6 commit f00d5eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/api/helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class Helper {
required GeneralCallback<LoginResponse?> callback,
bool clearCache = false,
}) async {
Helper.username = username;
Helper.username = username.toUpperCase();
Helper.password = password;
try {
LoginResponse? loginResponse;
Expand All @@ -121,13 +121,13 @@ class Helper {
default:
if (selector != null && (selector!.login == mobile)) {
loginResponse = await WebApHelper.instance.login(
username: username,
username: username.toUpperCase(),
password: password,
);
await WebApHelper.instance.loginToMobile();
} else {
loginResponse = await WebApHelper.instance.login(
username: username,
username: username.toUpperCase(),
password: password,
);
}
Expand Down

0 comments on commit f00d5eb

Please sign in to comment.