Add sign in flow using magic links

This commit is contained in:
Stanko K.R.
2025-10-07 19:33:51 +02:00
parent d0215e9fd2
commit 5cef4ffeb0
51 changed files with 908 additions and 268 deletions
@@ -1,19 +1,18 @@
require "test_helper"
class ControllerAuthenticationTest < ActionDispatch::IntegrationTest
test "access without an account slug redirects to new session" do
test "access without an account slug redirects to login menu" do
integration_session.default_url_options[:script_name] = "" # no tenant
get cards_path
assert_response :success
assert_dom "p", text: "You don't have any existing BOXCAR accounts."
assert_redirected_to session_login_menu_path
end
test "access with an account slug but no session redirects to new session" do
get cards_path
assert_redirected_to new_session_path
assert_redirected_to new_session_path(script_name: nil)
end
test "access with an account slug and a session allows functional access" do