1
0
Fork 0

Fix auth code extraction

Cut off get request at the & if provided. This fixes logins for
Pleroma.
This commit is contained in:
Ryan Fox 2021-01-15 22:57:31 +00:00
parent a1a7b16842
commit 54a3cec17c
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E
1 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,9 @@ extractAuthCode : Navigation.Location -> Maybe String
extractAuthCode { search } =
case (String.split "?code=" search) of
[ _, authCode ] ->
Just authCode
authCode
|> String.split "&"
|> List.head
_ ->
Nothing