[openstreetmap/openstreetmap-website] Resourceful routing for password resets (PR #4392)

Andy Allan notifications at github.com
Wed Dec 6 19:49:21 UTC 2023


This PR refactors the passwords controller to use resourceful routing. It thereby aligns the methods with those used by Devise, to smooth future migration.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4392

-- Commit Summary --

  * Use path and url helpers for password links
  * Resourceful routing for passwords

-- File Changes --

    M app/abilities/ability.rb (2)
    M app/controllers/passwords_controller.rb (54)
    M app/mailers/user_mailer.rb (3)
    R app/views/passwords/edit.html.erb (2)
    R app/views/passwords/new.html.erb (0)
    M app/views/sessions/new.html.erb (2)
    M config/locales/en.yml (7)
    M config/routes.rb (8)
    M test/controllers/passwords_controller_test.rb (20)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4392.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4392.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4392
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4392 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231206/296b4a39/attachment.htm>


More information about the rails-dev mailing list