]> git.openstreetmap.org Git - rails.git/commit
Refactor login/logout into sessions controller
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 10 Mar 2021 14:15:14 +0000 (14:15 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 24 Mar 2021 11:32:46 +0000 (11:32 +0000)
commitf18baae22e4088af7f252c82f3c4a2576862a438
treea05dba090885132acbfb5bc99ee4ec236d281b44
parent3512d6303c438ceaab5e74bcc43b165a55a2aa20
Refactor login/logout into sessions controller

Certain controller methods are shared with oauth-based logins, and these have been
moved to a concern.
16 files changed:
.rubocop_todo.yml
app/abilities/ability.rb
app/controllers/concerns/session_methods.rb [new file with mode: 0644]
app/controllers/sessions_controller.rb [new file with mode: 0644]
app/controllers/users_controller.rb
app/helpers/user_helper.rb
app/views/sessions/destroy.html.erb [moved from app/views/users/logout.html.erb with 100% similarity]
app/views/sessions/new.html.erb [moved from app/views/users/login.html.erb with 100% similarity]
config/locales/en.yml
config/routes.rb
test/controllers/users_controller_test.rb
test/integration/user_changeset_comments_test.rb
test/integration/user_diaries_test.rb
test/integration/user_login_test.rb
test/integration/user_terms_seen_test.rb
test/system/issues_test.rb