Fix auth code extraction
Cut off get request at the & if provided. This fixes logins for Pleroma.
This commit is contained in:
parent
a1a7b16842
commit
54a3cec17c
|
@ -24,7 +24,9 @@ extractAuthCode : Navigation.Location -> Maybe String
|
||||||
extractAuthCode { search } =
|
extractAuthCode { search } =
|
||||||
case (String.split "?code=" search) of
|
case (String.split "?code=" search) of
|
||||||
[ _, authCode ] ->
|
[ _, authCode ] ->
|
||||||
Just authCode
|
authCode
|
||||||
|
|> String.split "&"
|
||||||
|
|> List.head
|
||||||
|
|
||||||
_ ->
|
_ ->
|
||||||
Nothing
|
Nothing
|
||||||
|
|
Loading…
Reference in New Issue