<p></p>
<p><b>@milan-cvetkovic</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4455#discussion_r1452555944">app/views/users/new_association.erb</a>:</p>
<pre style='color:#555'>> + <h1><%= t ".title" %></h1>
+ </div>
+ <div class='header-illustration new-user-arm d-none d-md-block'></div>
+<% end %>
+
+<div class="auth-container">
+ <div class="text-muted col-sm form-container">
+
+ <h4><%= t ".welcome" %></h4>
+
+ <%= bootstrap_form_for current_user, :url => { :action => "create_association" } do |f| %>
+ <%= hidden_field_tag("referer", h(@referer)) unless @referer.nil? %>
+ <%= f.hidden_field :auth_provider %>
+ <%= f.hidden_field :auth_uid %>
+
+ <% if current_user.errors[:email].empty? %>
</pre>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tomhughes/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tomhughes">@tomhughes</a> This is actually a bit tricky and probably rare scenario. User selects "login with X" and after logging in with X, X reports that user has an email address <code class="notranslate">user@X.com</code>. But that address is already used, likely by the same user. The implementation currently un-hides the email field and forces user to choose different email.</p>
<p dir="auto">This is not really approprirate, since the user may not have another email address to offer. User would already have OSM username/password account. Perhaps the proper response would be to offer them to link their existing OSM account with auth_provider they chose.</p>
<p dir="auto">Perhaps we could simply redirect them to "Login" page instead of offering them (and forcing them) to provide alternate email?</p>
<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/4455#discussion_r1452555944">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNXRTGHO52UBFNGMU3YOVIA3AVCNFSM6AAAAABBLOL2OWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMRRHE3TAMZVGM">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIXCJHBTDXOSVHTH4LYOVIA3A5CNFSM6AAAAABBLOL2OWWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTTMTEH3C.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/4455/review/1821970353</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/4455#discussion_r1452555944",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4455#discussion_r1452555944",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>