Better login (#39)

* Better login

* Lint fix

* Restore some changes

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2023-01-25 07:52:23 -05:00
1 parent fa1bc29220
commit 90df81df4b
2 files changed
+3 -3

No files matched your search

@@ -32,10 +32,10 @@ namespace Http
response = context.response
server = context.server
if request.query["token"] <> invalid and request.query["referer"] <> invalid
if request.query["token"] <> invalid and request.query["ref"] <> invalid
' Token is encoded twice for some reason
token = request.query["token"].DecodeUri().DecodeUriComponent()
referer = request.query["referer"].DecodeUri()
referer = request.query["ref"].DecodeUri()
InvidiousSettings.SetAuthToken(token, referer)
server.task.top.login = true
end if