Trust Google and Yahoo to return valid email addresses
authorKai Krueger <kakrueger@gmail.com>
Sat, 13 Oct 2012 06:26:04 +0000 (00:26 -0600)
committerTom Hughes <tom@compton.nu>
Tue, 30 Oct 2012 19:14:45 +0000 (19:14 +0000)
commit104727f889aaf31f917c8243014b161732b6e351
tree6d7a7f5a23d31e3c991ca11bd4f3cb517ba1f59b
parent7eb01eb31392bcf3bf3cb0c25053e1002bd678b3
Trust Google and Yahoo to return valid email addresses

Both Google and Yahoo guarantee that the email address they return
during the OpenID authentication are emails that they have already
verified:

  http://stackoverflow.com/q/5639419

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

This therefore reduces the signup procedure by one step and makes
it easier for new users of these OpenID providers, which cover the
majority of users.
app/controllers/user_controller.rb
app/models/notifier.rb
app/views/notifier/signup_confirm.html.erb
app/views/notifier/signup_confirm.text.erb
config/locales/en.yml