Skip to content

Commit

Permalink
feat (WIP): Remove all keycloak_auth? branching
Browse files Browse the repository at this point in the history
Now that all of our environments have switched to Keycloak for auth, we
no longer need to support the local auth option.
  • Loading branch information
arkadyan committed Aug 23, 2023
1 parent 16e2304 commit f020818
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 52 deletions.
6 changes: 1 addition & 5 deletions apps/concierge_site/lib/controllers/account_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ defmodule ConciergeSite.AccountController do
require Logger

def new(conn, _params) do
if SessionHelper.keycloak_auth?() do
redirect(conn, to: "/auth/keycloak/register")
else
render(conn, "new.html", account_changeset: new_user_changeset())
end
redirect(conn, to: "/auth/keycloak/register")
end

def edit(%{assigns: %{current_user: user}} = conn, _params) do
Expand Down
47 changes: 0 additions & 47 deletions apps/concierge_site/lib/templates/account/new.html.eex

This file was deleted.

0 comments on commit f020818

Please sign in to comment.