Bug 1372261

Summary: [Online] Emails are not sent to new address when re-registrer the same account with new email after expiration
Product: OpenShift Online Reporter: Xingxing Xia <xxia>
Component: WebsiteAssignee: Dan Mace <dmace>
Status: CLOSED CURRENTRELEASE QA Contact: Bing Li <bingli>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, jlucky, jokerman, mmccomas
Target Milestone: ---   
Target Release: 3.x   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-04 13:08:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Xingxing Xia 2016-09-01 09:37:10 UTC
Description of problem:
Emails are not sent to new address when re-registrer the same account with new email after expiration

Version-Release number of selected component (if applicable):
dev-preview-int v3.3.0.26

How reproducible:
Always

Steps to Reproduce:
1. Register Online account with email ***@qq.com
2. After the account expires, re-register the account again, but this time use another email ***@redhat.com in registration
3. Check emails sent to ***@qq.com ***@redhat.com

Actual results:
3. After re-registration, misc emails from The OpenShift Team still are sent to ***@qq.com instead of ***@redhat.com

Expected results:
3. After re-registration, misc emails from The OpenShift Team should be sent to new registered email ***@redhat.com

Additional info:

Comment 2 Jacob Lucky 2016-09-01 13:26:47 UTC
This behavior was intentional to prevent duplicate accounts from being created as our database (Intercom.io) considers email address to be a unique key (and the primary key under certain conditions). However, I was able to confirm through testing that we are safe allowing users to change their email address because we are using GitHub ID as the primary key across multiple registrations, preventing Intercom.io from using email address as an alternate/fallback primary key.

This has been resolved/updated and the fix has been pushed to both staging and production.

Comment 3 Xingxing Xia 2016-09-02 02:54:20 UTC
(In reply to Jacob Lucky from comment #2)
> This has been resolved/updated and the fix has been pushed to both staging
> and production.

Thanks. Checked STG, now it sends emails to new address.