the code
Signed-off-by: BalazsManus <balazsmanus@noreply.localhost>
This commit is contained in:
parent
26cd3fc163
commit
dfa0e53d17
@ -106,7 +106,7 @@ class PremiumAuth {
|
|||||||
log("[ERROR] reFilc+ auth failed: $err\n$sta");
|
log("[ERROR] reFilc+ auth failed: $err\n$sta");
|
||||||
}
|
}
|
||||||
|
|
||||||
await _settings.update(plusSessionId: "", premiumScopes: []);
|
await _settings.update(plusSessionId: "", premiumScopes: ["refilc.plus.*"]);
|
||||||
// if (Platform.isAndroid) updateWidget();
|
// if (Platform.isAndroid) updateWidget();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -126,7 +126,7 @@ class PremiumAuth {
|
|||||||
{bool removePremium = false, bool reactivate = false}) async {
|
{bool removePremium = false, bool reactivate = false}) async {
|
||||||
if (!removePremium) {
|
if (!removePremium) {
|
||||||
if (_settings.plusSessionId == "" && !reactivate) {
|
if (_settings.plusSessionId == "" && !reactivate) {
|
||||||
await _settings.update(premiumScopes: [], premiumLogin: "");
|
await _settings.update(premiumScopes: ["refilc.plus.*"], premiumLogin: "");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,7 +192,7 @@ class PremiumAuth {
|
|||||||
// activation of reFilc+ failed
|
// activation of reFilc+ failed
|
||||||
await _settings.update(
|
await _settings.update(
|
||||||
premiumAccessToken: "",
|
premiumAccessToken: "",
|
||||||
premiumScopes: [],
|
premiumScopes: ["refilc.plus.*"],
|
||||||
premiumLogin: "",
|
premiumLogin: "",
|
||||||
plusSessionId: "",
|
plusSessionId: "",
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user