mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 19:29:11 +00:00
Handle existing redirect params.
This commit is contained in:
parent
1d3d66a841
commit
fd12e585c9
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@ defmodule Pleroma.Web.OAuth.OAuthController do
|
|||
auth: auth
|
||||
}
|
||||
else
|
||||
url = "#{redirect_uri}?code=#{auth.token}"
|
||||
connector = if String.contains?(redirect_uri, "?"), do: "&", else: "?"
|
||||
url = "#{redirect_uri}#{connector}code=#{auth.token}"
|
||||
url = if params["state"] do
|
||||
url <> "&state=#{params["state"]}"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue