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

Login with GitHub fails if member with same email exists #768

Open
bjarnef opened this issue Apr 29, 2022 · 6 comments
Open

Login with GitHub fails if member with same email exists #768

bjarnef opened this issue Apr 29, 2022 · 6 comments
Labels

Comments

@bjarnef
Copy link
Contributor

bjarnef commented Apr 29, 2022

Detailed description

On the login page there is the button to login with GitHub. However this seems to fails, because I already have an user on Our.. and because the same email is used on GitHub.

I guess it try to create a user/member if one doesn't already exists on Our?

image

image

@rasmusjp
Copy link
Member

Isn't this because you need to link you Our profile with Github by logging in with email/password first?

@abjerner
Copy link
Contributor

Isn't this because you need to link you Our profile with GitHub by logging in with email/password first?

Sounds like a good explanation.

I can see Bjarne has a GitHub link on his profile, but if he did specify his GitHub username prior to my original PR, that could be why (handling that was out of the scope of my PR).

@bjarnef
Copy link
Contributor Author

bjarnef commented Apr 29, 2022

It should already be linked to my GitHub account :)

image

@abjerner
Copy link
Contributor

What happens if you unlink and link again?

Again because existing values was out of the scope of my PR, I think Our thinks you have linked your GitHub account even if you entered your username manually at some point. Linking saves some additional information (eg. your GitHub user ID).

If it still doesn't work, maybe Rasmus or someone from HQ can help.

@bjarnef
Copy link
Contributor Author

bjarnef commented May 30, 2022

@abjerner unlinking and linking to GitHub again seemed to work. After this I got the same error message as mentioned here #770

On second attempt it was very slow, but did then log me in. On subsequent attempts it was faster (I guess it may be cached).

@abjerner
Copy link
Contributor

abjerner commented Jun 1, 2022

@bjarnef I don't think the two are related.

Regarding the slow performance and timeout errors, IIRC the login code is looking for the username property on the member, so it's user the member service (database) to find a member with the correct username.

I'd imagine the code takes a bit longer for each new member that is registered, so take 4-5 years of members, it might not perform as well as it did when I made the PR. The overall load of the site might have something to say as well.

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

No branches or pull requests

3 participants