Minor edit (comment).

This commit is contained in:
Ivan Tashkinov 2019-06-18 17:15:26 +03:00
parent 9f45f93949
commit 64bc7ac619

View File

@ -119,7 +119,7 @@ def after_create_authorization(%Plug.Conn{} = conn, %Authorization{} = auth, %{
}) do
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
redirect_uri = redirect_uri(conn, redirect_uri)
url_params = %{code: auth.token}