# Discourse doesn't re-verify an address changed by SSO

**URL:** <https://meta.discourse.org/t/discourse-doesnt-re-verify-an-address-changed-by-sso/30887>\
**Category:** Bug\
**Tags:** sso, discourseconnect\
**Created:** [8 يوليو 2015، 9:52ص UTC](https://meta.discourse.org/t/discourse-doesnt-re-verify-an-address-changed-by-sso/30887 "2015-07-08T09:52:08Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [16 أغسطس 2016، 11:40م UTC](https://meta.discourse.org/t/discourse-doesnt-re-verify-an-address-changed-by-sso/30887/5 "2016-08-16T23:40:02Z")

</div>

I’m running into this when `sso overrides email` is enabled on Discourse and a user changes their email address on a WordPress site. How big of a security risk is this?

Adding `user.active = false` to `DiscourseSingleSignOn#change_external_attributes_and_override` for the case when the user’s email doesn’t match the email sent with the sso request forces the user to confirm their new email address. Unfortunately it does this by redirecting them to `users/account_created`, so it’s a bit of a hacky solution.

Edit: the problem is that WordPress will let a user change their email without verifying it. The wp-discourse plugin attempts to verify the email on registration, and if it can’t it sets `require_activation` to true. Possibly the simplest solution is to recommend that sites using the plugin should not enable `sso overrides email`.

---

_[View the full topic](https://meta.discourse.org/t/discourse-doesnt-re-verify-an-address-changed-by-sso/30887)._
