diff --git a/lib/ketbin_web/controllers/user_auth.ex b/lib/ketbin_web/controllers/user_auth.ex index 7df5987..b103bc1 100644 --- a/lib/ketbin_web/controllers/user_auth.ex +++ b/lib/ketbin_web/controllers/user_auth.ex @@ -34,6 +34,7 @@ defmodule KetbinWeb.UserAuth do |> put_session(:user_token, token) |> put_session(:live_socket_id, "users_sessions:#{Base.url_encode64(token)}") |> maybe_write_remember_me_cookie(token, params) + |> put_flash(:info, "Logged in successfully!") |> redirect(to: user_return_to || signed_in_path(conn)) end diff --git a/lib/ketbin_web/templates/user_session/new.html.eex b/lib/ketbin_web/templates/user_session/new.html.eex index 7be6449..cf90058 100644 --- a/lib/ketbin_web/templates/user_session/new.html.eex +++ b/lib/ketbin_web/templates/user_session/new.html.eex @@ -1,27 +1,34 @@ -
<%= @error_message %>
-<%= @error_message %>
+- <%= link "Register", to: Routes.user_registration_path(@conn, :new) %> | - <%= link "Forgot your password?", to: Routes.user_reset_password_path(@conn, :new) %> -
++ <%= link "Register", to: Routes.user_registration_path(@conn, :new) %> | + <%= link "Forgot your password?", to: Routes.user_reset_password_path(@conn, :new) %> +
+