Minor edit (comment).
This commit is contained in:
parent
9f45f93949
commit
64bc7ac619
|
@ -119,7 +119,7 @@ def after_create_authorization(%Plug.Conn{} = conn, %Authorization{} = auth, %{
|
||||||
}) do
|
}) do
|
||||||
app = Repo.preload(auth, :app).app
|
app = Repo.preload(auth, :app).app
|
||||||
|
|
||||||
# An extra safety measure before we redirect (the same check is being performed in `do_create_authorization/2`)
|
# An extra safety measure before we redirect (also done in `do_create_authorization/2`)
|
||||||
if redirect_uri in String.split(app.redirect_uris) do
|
if redirect_uri in String.split(app.redirect_uris) do
|
||||||
redirect_uri = redirect_uri(conn, redirect_uri)
|
redirect_uri = redirect_uri(conn, redirect_uri)
|
||||||
url_params = %{code: auth.token}
|
url_params = %{code: auth.token}
|
||||||
|
|
Loading…
Reference in New Issue