<p>Both Google and Yahoo guarantee that the email address they return during the OpenID<br>
authentication are emails that they have already verified[1].</p>

<p>Therefore special case these OpenID providers and automatically activate the new users<br>
account without requiring a separate email verification step.</p>

<p>This therefore reduces the signup procedure by one step and makes it easier for new users<br>
of these OpenID providers (which cover the majority of users).</p>

<p>This might be particularly useful should the decision be made that the notes / openstreetbugs<br>
feature require an account signup to post notes in future.</p>

<p>[1] <a href="http://stackoverflow.com/questions/5639419/are-email-addresses-returned-by-the-google-or-yahoo-openid-providers-verified-ad">http://stackoverflow.com/questions/5639419/are-email-addresses-returned-by-the-google-or-yahoo-openid-providers-verified-ad</a></p>

<hr>

<h4>You can merge this Pull Request by running:</h4>
<pre>  git pull https://github.com/apmon/openstreetmap-website openID-email</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/134'>https://github.com/openstreetmap/openstreetmap-website/pull/134</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Trust Google and Yahoo as OpenID providers to only return valid email…</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li><strong>M</strong> app/controllers/user_controller.rb (37)</li>
  <li><strong>M</strong> app/models/notifier.rb (16)</li>
  <li><strong>M</strong> app/views/notifier/signup_confirm.html.erb (6)</li>
  <li><strong>M</strong> app/views/notifier/signup_confirm.text.erb (6)</li>
  <li><strong>M</strong> config/locales/en.yml (6)</li>
</ul>

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


            <p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
              —<br>
              Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/134'>view it on GitHub</a>.
            </p>
            <img src='https://github.com/notifications/beacon/Jshd8sI44GVrKZBvymxqKL9wdqHrYB4AxE_bJEiTatX7GjIjN805AQwNYw7301qA.gif' height='1' width='1'>