[openstreetmap/openstreetmap-website] Welcome email (PR #4288)

Milan Cvetkovic notifications at github.com
Fri Oct 13 16:10:03 UTC 2023


When user creates OSM account during Oauth2 authorization initiated from a third-party app, send "Welcome" email instead of redirecting user to "Welcome" page.

- When creating OSM account from OSM website, behaviour is unchanged.
- When creating OSM account during OAuth2 authorization, send a welcome email
   and redirect user to authorization screen after completing the sign-up process.
   
  Related to #4246
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Skip welcome screen when authorization is in progress
  * Send welcome email when skipping welcome screen
  * Also send welcome email after confirming email.

-- File Changes --

    M app/controllers/confirmations_controller.rb (2)
    M app/controllers/users_controller.rb (30)
    M app/helpers/user_mailer_helper.rb (8)
    M app/mailers/user_mailer.rb (11)
    A app/views/user_mailer/welcome_email.html.erb (32)
    A app/views/user_mailer/welcome_email.text.erb (33)
    M app/views/users/new.html.erb (1)
    M config/locales/en.yml (84)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list