implement google oauth
This commit is contained in:
@@ -27,8 +27,6 @@ defmodule EntenduWeb.AuthController do
|
||||
|
||||
with %{id: link_id} <- link,
|
||||
{:ok, user} <- UserFromAuth.find_or_create(auth) do
|
||||
# TODO: send over encrypted data that the frontend can decrypt
|
||||
|
||||
conn
|
||||
|> put_session(:current_user, user)
|
||||
|> configure_session(renew: true)
|
||||
|
@@ -7,6 +7,7 @@ defmodule EntenduWeb.PageController do
|
||||
|
||||
def index(conn, _params) do
|
||||
conn
|
||||
|> clear_session()
|
||||
|> render("index.html")
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user