refactor(paste): switch to heex templates
Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
parent
8b7073145d
commit
9b18d5186d
@ -22,5 +22,7 @@ defmodule KetbinWeb.UserSessionController do
|
||||
conn
|
||||
|> put_flash(:info, "Logged out successfully.")
|
||||
|> UserAuth.log_out_user()
|
||||
|
||||
conn
|
||||
end
|
||||
end
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user