consolidate config of cookie revoke

This commit is contained in:
simon 2022-06-15 15:39:24 +07:00
parent 2ad093a9a8
commit 2ceb1b701a
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 3 additions and 3 deletions

View File

@ -94,6 +94,9 @@ class CookieHandler:
def revoke():
"""revoke cookie"""
RedisArchivist().del_message("cookie")
RedisArchivist().set_message(
"config", False, path=".downloads.cookie_import"
)
print("cookie: revoked")
def validate(self):

View File

@ -846,9 +846,6 @@ class SettingsView(View):
handler.import_cookie()
valid = handler.validate()
if not valid:
RedisArchivist().set_message(
"config", False, path=".downloads.cookie_import"
)
handler.revoke()
message = {
"status": "message:setting",