Skip to content

Commit

Permalink
🏗️ Make login use token dio.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 18, 2020
1 parent 78f9f55 commit 5ded3d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/user_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class UserAPI {
static List<Cookie> cookiesForJWGL;

static Future login(Map<String, dynamic> params) async {
return NetUtils.post(API.login, data: params);
return NetUtils.tokenDio.post(API.login, data: params);
}

static void logout(context) async {
Expand Down

0 comments on commit 5ded3d8

Please sign in to comment.