Replace cookie HTTP verification with butlerd's Profile.List + UseSavedLogin
Some checks failed
Build plugin / build (push) Has been cancelled
Some checks failed
Build plugin / build (push) Has been cancelled
Butlerd stores credentials in its SQLite DB after the first password login. On restart, Profile.List finds saved profiles and Profile.UseSavedLogin refreshes them — no cookie persistence needed on our side.
This commit is contained in:
parent
1931ae143a
commit
d09bd2ae79
3 changed files with 37 additions and 114 deletions
|
|
@ -100,7 +100,6 @@ func _on_save_button() -> void:
|
|||
|
||||
if method == 0:
|
||||
# API key login
|
||||
settings_manager.set_value("plugin.itch", "cookie", "")
|
||||
settings_manager.set_value("plugin.itch", "username", "")
|
||||
var api_key: String = api_key_box.text.strip_edges()
|
||||
settings_manager.set_value("plugin.itch", "api_key", api_key)
|
||||
|
|
@ -112,7 +111,6 @@ func _on_save_button() -> void:
|
|||
var uname: String = username_box.text.strip_edges()
|
||||
var password: String = password_box.text
|
||||
settings_manager.set_value("plugin.itch", "username", uname)
|
||||
settings_manager.set_value("plugin.itch", "cookie", "")
|
||||
if uname == "" or password == "":
|
||||
return
|
||||
itch.login_with_password(uname, password)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue