Merge pull request #3656 from iBicha/feature/auth-token-username

encode username on callback
This commit is contained in:
Émilien Devos (perso) 2023-02-22 14:41:42 +01:00 committed by GitHub
commit 0995e0447c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -262,7 +262,7 @@ module Invidious::Routes::Account
end end
query["token"] = access_token query["token"] = access_token
query["username"] = user.email query["username"] = URI.encode_path_segment(user.email)
url.query = query.to_s url.query = query.to_s
env.redirect url.to_s env.redirect url.to_s