mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-10 01:10:31 +00:00
consolidate config of cookie revoke
This commit is contained in:
parent
2ad093a9a8
commit
2ceb1b701a
@ -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):
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user