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():
|
def revoke():
|
||||||
"""revoke cookie"""
|
"""revoke cookie"""
|
||||||
RedisArchivist().del_message("cookie")
|
RedisArchivist().del_message("cookie")
|
||||||
|
RedisArchivist().set_message(
|
||||||
|
"config", False, path=".downloads.cookie_import"
|
||||||
|
)
|
||||||
print("cookie: revoked")
|
print("cookie: revoked")
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
|
@ -846,9 +846,6 @@ class SettingsView(View):
|
|||||||
handler.import_cookie()
|
handler.import_cookie()
|
||||||
valid = handler.validate()
|
valid = handler.validate()
|
||||||
if not valid:
|
if not valid:
|
||||||
RedisArchivist().set_message(
|
|
||||||
"config", False, path=".downloads.cookie_import"
|
|
||||||
)
|
|
||||||
handler.revoke()
|
handler.revoke()
|
||||||
message = {
|
message = {
|
||||||
"status": "message:setting",
|
"status": "message:setting",
|
||||||
|
Loading…
Reference in New Issue
Block a user