<p dir="auto">When user creates OSM account during Oauth2 authorization initiated from a third-party app, send "Welcome" email instead of redirecting user to "Welcome" page.</p>
<ul dir="auto">
<li>
<p dir="auto">When creating OSM account from OSM website, behaviour is unchanged.</p>
</li>
<li>
<p dir="auto">When creating OSM account during OAuth2 authorization, send a welcome email<br>
and redirect user to authorization screen after completing the sign-up process.</p>
<p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1894751229" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4246" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/4246/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/4246">#4246</a></p>
</li>
</ul>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/4288'>https://github.com/openstreetmap/openstreetmap-website/pull/4288</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4288/commits/796b2b12f7855efd7efe9893fb2d9d465cef4c89" class="commit-link">796b2b1</a>  Skip welcome screen when authorization is in progress</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4288/commits/3025ecbab232c0d83679b182b74d9246934bff8d" class="commit-link">3025ecb</a>  Send welcome email when skipping welcome screen</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4288/commits/934f7e3b967dc04082c6b9130253062fe3f1ad41" class="commit-link">934f7e3</a>  Also send welcome email after confirming email.</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4288/files">8 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4288/files#diff-961c5d7e0310073ca00d502eda2687808102441be660a654cab29645fbcea019">app/controllers/confirmations_controller.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4288/files#diff-cfdccd0a9d5df5a43aaad2a35d36ebbe187c52ad5fdc9846fa189d04537adb6e">app/controllers/users_controller.rb</a>
    (30)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4288/files#diff-4441419566196bfe07c7e08524892c3f7e198c37dd89d4f971b1a269abd59257">app/helpers/user_mailer_helper.rb</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4288/files#diff-55254045ba774e4c360d7bbfde054665072d2ab49abc3f21add15a37bba65a1c">app/mailers/user_mailer.rb</a>
    (11)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4288/files#diff-3b32529378701493ba50ffeb111b0f6382a76a6f731a62a88b38192714b034fd">app/views/user_mailer/welcome_email.html.erb</a>
    (32)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4288/files#diff-62a3983b9aa935af943764d1d1b01385c5b500a9b9aea0828fd6bf707258a971">app/views/user_mailer/welcome_email.text.erb</a>
    (33)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4288/files#diff-8dd599ea27028815c7fa912755a38dd05e4a768470cc792840b85fd1e486d69a">app/views/users/new.html.erb</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4288/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (84)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4288.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4288.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4288.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4288.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4288">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLL27QF3MOA3T7WNRT3X7FRVXANCNFSM6AAAAAA57L2W2A">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKZ2CAMD5TAFWU2LUTX7FRVXA5CNFSM6AAAAAA57L2W2CWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHHRARSA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4288</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4288",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4288",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>