Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

При смене email в github на CB создаётся новый юзер. Невозможно войти в старого. #399

Closed
fey opened this issue Aug 3, 2023 · 0 comments

Comments

@fey
Copy link
Contributor

fey commented Aug 3, 2023

Если сменить почту на github то при входе с помощью github на CB будет создан новый юзер.
Так как сопоставление внутри идёт по email

user = User::SocialSignupForm.find_or_initialize_by(email: auth.info.email.downcase)

Ожидаемое поведение

После смены емейла в гитхабе, пользователь может войти в свой аккаунт на КБ. А емейл пользователя на КБ обновится.

usernaimandrey added a commit that referenced this issue Aug 31, 2023
…ugh github (#403)

* take into account the change of email when authenticating through github

* fix

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants