Skip to content

Commit

Permalink
Do not retry request when logging in and registering
Browse files Browse the repository at this point in the history
  • Loading branch information
Serious-senpai committed Dec 24, 2024
1 parent 1634d25 commit 7efe734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/resident_manager/lib/src/models/reg_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class RegisterRequest extends PublicInfo {
queryParameters: info.personalInfoQuery(),
headers: headers,
authorize: false,
retry: 1,
);

final data = json.decode(utf8.decode(response.bodyBytes));
Expand Down
1 change: 1 addition & 0 deletions app/resident_manager/lib/src/state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class ApplicationState {
body: "username=${Uri.encodeComponent(username)}&password=${Uri.encodeComponent(password)}",
headers: {"Content-Type": "application/x-www-form-urlencoded"},
authorize: false,
retry: 1,
);

final result = response.statusCode < 400;
Expand Down

0 comments on commit 7efe734

Please sign in to comment.