From f4b0469d85a8fc209d0fe508c20282b91568b9f2 Mon Sep 17 00:00:00 2001 From: TaYaKi71751 Date: Wed, 20 Dec 2023 12:01:31 +0900 Subject: [PATCH] Fix cookie key name --- lib/pages/settings/login/ehentai_login.dart | 2 +- lib/pages/settings/settings_page.dart | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pages/settings/login/ehentai_login.dart b/lib/pages/settings/login/ehentai_login.dart index 14e8e686f..7bb18f48f 100644 --- a/lib/pages/settings/login/ehentai_login.dart +++ b/lib/pages/settings/login/ehentai_login.dart @@ -69,7 +69,7 @@ class _LoginScreenState extends State { developer.log('Get cookies: $cookies'); if (cookies.containsKey('ipb_member_id') && - cookies.containsKey('igneous') && + cookies.containsKey('sk') && cookies.containsKey('ipb_pass_hash')) { // await sessionStore.setSession(cookieString); // await _cookieManager.clearCookies(); diff --git a/lib/pages/settings/settings_page.dart b/lib/pages/settings/settings_page.dart index 43456d5fb..04c4cd150 100644 --- a/lib/pages/settings/settings_page.dart +++ b/lib/pages/settings/settings_page.dart @@ -2269,7 +2269,7 @@ class _SettingsPageState extends State var iController = TextEditingController( text: - cookie != null ? parseCookies(cookie)['igneous'] : ''); + cookie != null ? parseCookies(cookie)['sk'] : ''); var imiController = TextEditingController( text: cookie != null ? parseCookies(cookie)['ipb_member_id'] @@ -2304,7 +2304,7 @@ class _SettingsPageState extends State mainAxisSize: MainAxisSize.min, children: [ Row(children: [ - const Text('igneous: '), + const Text('sk: '), Expanded( child: TextField( controller: iController, @@ -2334,7 +2334,7 @@ class _SettingsPageState extends State if (dialog != null && dialog == true) { var ck = - 'igneous=${iController.text};ipb_member_id=${imiController.text};ipb_pass_hash=${iphController.text};'; + 'sk=${iController.text};ipb_member_id=${imiController.text};ipb_pass_hash=${iphController.text};'; await prefs.setString('eh_cookies', ck); } }