# Issue: user changed google account and can't connect thru his profile

**URL:** <https://meta.discourse.org/t/issue-user-changed-google-account-and-cant-connect-thru-his-profile/35028>\
**Category:** Product Support\
**Created:** [28 أكتوبر 2015، 5:36م UTC](https://meta.discourse.org/t/issue-user-changed-google-account-and-cant-connect-thru-his-profile/35028 "2015-10-28T17:36:34Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![polusok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/polusok/32/106741_2.png) [@polusok](https://meta.discourse.org/u/polusok)\
**Post date:** [12 يناير 2016، 9:02ص UTC](https://meta.discourse.org/t/issue-user-changed-google-account-and-cant-connect-thru-his-profile/35028/7 "2016-01-12T09:02:58Z")

</div>

what we did

1. i as admin, changed email on profile
2. user confirmed new email by link in received email
3. user do have access to site thru link
4. but he tries to log in thru google authorization, user got 500 error

I asked user to give me error details however i see error message in logs (fyi, cleaned values)

```
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_google_user_infos_on_user_id"
DETAIL: Key (user_id)=(2512) already exists.
: INSERT INTO "google_user_infos" ("user_id", "google_user_id", "email", "first_name", "last_name", "gender", "name", "profile_link", "picture", "created_at", "updated_at") VALUES (2512, 'xxxxxxxxxxxxxxxxx', 'lxxxxxxx@gmail.com', 'xxxxx', 'xxxxxx', 'male', 'xxxxx xxxxxx', 'https://plus.google.com/xxxxxxxxxxxxxxxxxxxxx', 'https://lh3.googleusercontent.com/-xxxxxxxxxxxxxxxxx/photo.jpg?sz=50', '2016-01-12 08:17:40.260340', '2016-01-12 08:17:40.260340') RETURNING "id"

```

Any ideas what to do next?

---

_[View the full topic](https://meta.discourse.org/t/issue-user-changed-google-account-and-cant-connect-thru-his-profile/35028)._
