Commit a2a8dce0 authored by Mayel's avatar Mayel

s

parent 295fb1c6
Pipeline #28834901 failed with stages
in 3 minutes and 29 seconds
......@@ -1137,13 +1137,13 @@ def register(conn, _) do
end
def register_post(conn, params) do
with {:ok, user} <- TwitterAPI.register_user(params) do
{:ok, app} <- get_or_make_app(),
{:ok, auth} <- Authorization.create_authorization(app, user),
{:ok, token} <- Token.exchange_token(app, auth) do
conn
|> put_session(:oauth_token, token.token)
|> redirect(to: "/web/getting-started")
with {:ok, user} <- TwitterAPI.register_user(params),
{:ok, app} <- get_or_make_app(),
{:ok, auth} <- Authorization.create_authorization(app, user),
{:ok, token} <- Token.exchange_token(app, auth) do
conn
|> put_session(:oauth_token, token.token)
|> redirect(to: "/web/getting-started")
else
_e ->
conn
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment