Skip to content

Commit

Permalink
fixed blank authtokens
Browse files Browse the repository at this point in the history
  • Loading branch information
biplobsd committed Feb 27, 2022
1 parent 5b3070f commit 555b90c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/auth_BLC/blc_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ class BLCApi {
}

Future<void> saveThis() async {
if (_authToken.isSave) {
if (_authToken.isSave) {
if (_authToken.isAnyChange()) {
await hiveSaveThis();
_authToken.setAllCache();
Expand Down
2 changes: 1 addition & 1 deletion lib/auth_BLC/cubit/authblc_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class AuthblcCubit extends Cubit<AuthblcState> {
Future<bool> vplPosting(String pid, String filename, String data) async {
var checkMethodInt = 0;
var isLogin = true;

while (!await _blClogin.isWebLoginSuccess()) {
if (checkMethodInt >= 2) {
isLogin = false;
Expand Down
14 changes: 7 additions & 7 deletions lib/auth_BLC/model/auth_token.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ class AuthToken {
}

void setAllCache() {
token = cToken;
privateToken = cPrivateToken;
logintoken = cLogintoken;
user = cUser;
pass = cPass;
autoGenKey = cAutoGenKey;
isSave = cIsSave;
cToken = token;
cPrivateToken = privateToken;
cLogintoken = logintoken;
cUser = user;
cPass = pass;
cAutoGenKey = autoGenKey;
cIsSave = isSave;
}

@override
Expand Down

0 comments on commit 555b90c

Please sign in to comment.