Added API function to force login of account

This commit is contained in:
Bofh 2021-02-08 21:22:00 +01:00
parent ccbf23891b
commit 469990388a
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,8 @@ class MyServer(BaseHTTPRequestHandler):
igmirror.add_igaccount(accname)
elif parts[1].lower() == 'update':
igmirror.update_igaccount_async(accname)
elif parts[1].lower() == 'login':
igmirror.pixelfed_login(accname, True)
elif parts[1].lower() == 'logout':
igmirror.logout_account(accname)
elif parts[1].lower() == 'nuke':