Skip to content

Instantly share code, notes, and snippets.

@shankardevy

shankardevy/session_controller.ex Secret

Last active Aug 19, 2017
Embed
What would you like to do?
defmodule MangoWeb.Admin.SessionController do
use MangoWeb, :controller
plug :set_layout
def new(conn, _params) do
conn
|> render("new.html")
end
defp set_layout(conn, _) do
conn
|> put_layout("admin_login.html")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment