Use LiveToast instead of built-in flash helpers
So that they can stack and get dismissed automatically
This commit is contained in:
@@ -22,7 +22,7 @@ defmodule MusicLibraryWeb.SessionController do
|
||||
|> redirect(to: ~p"/")
|
||||
else
|
||||
conn
|
||||
|> put_flash(:error, gettext("Invalid password"))
|
||||
|> put_toast(:error, gettext("Invalid password"))
|
||||
|> redirect(to: ~p"/login")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user