Refactor login/logout into sessions controller

Certain controller methods are shared with oauth-based logins, and these have been
moved to a concern.
This commit is contained in:
Andy Allan 2021-03-10 14:15:14 +00:00
parent 3512d6303c
commit f18baae22e
16 changed files with 285 additions and 250 deletions

View file

@ -30,7 +30,7 @@ class UserChangesetCommentsTest < ActionDispatch::IntegrationTest
follow_redirect!
# We should now be at the login page
assert_response :success
assert_template "users/login"
assert_template "sessions/new"
# We can now login
post "/login", :params => { "username" => user.email, "password" => "test" }
assert_response :redirect