refactor(paste): switch to heex templates

Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
Amogh Lele 2021-10-07 05:42:24 +05:30
parent 8b7073145d
commit 9b18d5186d
No known key found for this signature in database
GPG Key ID: F0EA64BC1B44A7F3
7 changed files with 3 additions and 0 deletions

View File

@ -22,5 +22,7 @@ defmodule KetbinWeb.UserSessionController do
conn
|> put_flash(:info, "Logged out successfully.")
|> UserAuth.log_out_user()
conn
end
end

View File

@ -45,6 +45,7 @@ defmodule KetbinWeb.UserSettingsController do
|> put_session(:user_return_to, Routes.user_settings_path(conn, :edit))
|> UserAuth.log_in_user(user)
conn
{:error, changeset} ->
render(conn, "edit.html", password_changeset: changeset)
end