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

Contact Form Submission - Website Bug (Sign in with Github + Google) #3827

Open
maggieliu05 opened this issue Jul 20, 2023 · 7 comments
Open
Labels
backlog Work on this later bug Something isn't working website website-related issue

Comments

@maggieliu05
Copy link
Contributor

Someone submitted the contact form!

URL: https://usaco.guide/dashboard
Module: None
Topic: Website Bug
Message:
I have created a GitHub account with my firstEmail. Then I used my GitHub account (as firstEmail) to Sign In to USACO Guide account. In dashboard, it showed "Signed in as firstEmail". After that I have added a secondEmail to my GitHub account, set it as primary email, and then completely removed the firstEmail. Then I signed in to USACO Guide again with my same GitHub account (now as secondEmail), but it still shows "Signed in as firstEmail" in its dashboard. And in settings (Sign In Methods), it shows that both accounts (GitHub and Google) aren't connected (only single one is connected) even if I used the both sign in methods (GitHub as secondEmail and Google as secondEmail).

First time (GitHub as firstEmail and Google as firstEmail) it was merged in settings (Sign In Methods) when I used my laptop (second attempt, first attempt was from my Android phone which was unsuccessful in terms of account merging) to sign in.

Please fix these issues. Thanks!

@maggieliu05 maggieliu05 added bug Something isn't working website website-related issue labels Jul 20, 2023
@bqi343
Copy link
Member

bqi343 commented Jul 23, 2023

I don't understand. So if you log in as secondEmail with either GitHub or Google, do you log into the same account that was created using firstEmail?

Which attempt was unsuccessful in terms of account merging? What do you mean by it was unsuccessful? How many different USACO Guide accounts do you have right now, and which sign-in methods are they associated with?

@mGH-aam
Copy link

mGH-aam commented Jul 23, 2023

I don't understand. So if you log in as secondEmail with either GitHub or Google, do you log into the same account that was created using firstEmail?

I logged in with GitHub and Google, neither with firstEmail nor with secondEmail. These email accounts were just connected to GitHub and Google. I didn't created any USACO Guide account using any of the email accounts, rather used GitHub and Google. So, shouldn't it be the same USACO Guide account as I just logged in again using the same GitHub account after changing my GitHub account's primary email from firstEmail to secondEmail? Yes, it is as I got all of my data back. But the problem is in USACO Guide dashboard. It still shows, "Signed in as firstEmail", it doesn't show, "Signed in as secondEmail". See the picture below.

IMG_20230723_212042

You see the email [email protected] which was the firstEmail and I used it to create my GitHub account. Then I logged in with GitHub to USACO Guide and its dashboard shows this firstEmail. It's fine. After that for some reasons I changed my GitHub account's email to [email protected] which is secondEmail, made it primary email, and then removed the firstEmail completely from my GitHub account. I then logged in again to USACO Guide using the same GitHub account. But USACO Guide dashboard still shows the firstEmail, not the secondEmail. It now should be like the below picture.

IMG_20230723_212420

But it is not, it is still like the first picture. Is it a problem actually? If yes, please fix it as quick as possible.

Which attempt was unsuccessful in terms of account merging? What do you mean by it was unsuccessful? How many different USACO Guide accounts do you have right now, and which sign-in methods are they associated with?

Consider two attempts - firstAttempt and secondAttempt. These mean that I tried to login in to USACO Guide from my Phone (OS - Android) and from my Laptop (OS - Arch Linux) respectively. The firstAttempt was unsuccessful in terms of account merging. Let's come back to the initial time when in my GitHub account I used the firstEmail. At that time I also logged in to USACO Guide using Google when the connected email was firstEmail like GitHub. As the email address (firstEmail) is same in both log in method (GitHub and Google), they should be merged like the picture below whatever I use to log in (GitHub or Google), right?

IMG_20230723_212159

But it was not at firstAttempt (from my Phone). In firstAttempt, there was a cross (×) with Google if I used GitHub to log in and a cross (×) with GitHub if I used Google to log in. But in secondAttempt (from my Laptop), it was okay (merged) like the third picture above. By successful or unsuccessful I meant the facts (firstAttempt and secondAttempt) I already described.

Right now I mainly have two USACO Guide accounts. One is which I created first time using GitHub. At that time, the connected email (connected to GitHub) was the firstEmail and now the connected email is the secondEmail. That time I also logged in with Google (connected email was the firstEmail), and both of the USACO Guide accounts (created using Google and GitHub) were merged at secondAttempt (from my Laptop) as the email was same. Another one is which I created recently using Google (connected email is secondEmail). It is still not merged with the account created using GitHub, though the email address is same now after changing the primary email of my GitHub account to secondEmail.

What I wanted is whatever log in method (GitHub or Google) I use, they should be merged.

@mGH-aam
Copy link

mGH-aam commented Jul 23, 2023

I don't understand. So if you log in as secondEmail with either GitHub or Google, do you log into the same account that was created using firstEmail?

I logged in with GitHub and Google, neither with firstEmail nor with secondEmail. These email accounts were just connected to GitHub and Google. I didn't created any USACO Guide account using any of the email accounts, rather used GitHub and Google. So, shouldn't it be the same USACO Guide account as I just logged in again using the same GitHub account after changing my GitHub account's primary email from firstEmail to secondEmail? Yes, it is as I got all of my data back. But the problem is in USACO Guide dashboard. It still shows, "Signed in as firstEmail", it doesn't show, "Signed in as secondEmail". See the picture below.

IMG_20230723_212042

You see the email [email protected] which was the firstEmail and I used it to create my GitHub account. Then I logged in with GitHub to USACO Guide and its dashboard shows this firstEmail. It's fine. After that for some reasons I changed my GitHub account's email to [email protected] which is secondEmail, made it primary email, and then removed the firstEmail completely from my GitHub account. I then logged in again to USACO Guide using the same GitHub account. But USACO Guide dashboard still shows the firstEmail, not the secondEmail. It now should be like the below picture.

IMG_20230723_212420

But it is not, it is still like the first picture. Is it a problem actually? If yes, please fix it as quick as possible.

Which attempt was unsuccessful in terms of account merging? What do you mean by it was unsuccessful? How many different USACO Guide accounts do you have right now, and which sign-in methods are they associated with?

Consider two attempts - firstAttempt and secondAttempt. These mean that I tried to login in to USACO Guide from my Phone (OS - Android) and from my Laptop (OS - Arch Linux) respectively. The firstAttempt was unsuccessful in terms of account merging. Let's come back to the initial time when in my GitHub account I used the firstEmail. At that time I also logged in to USACO Guide using Google when the connected email was firstEmail like GitHub. As the email address (firstEmail) is same in both log in method (GitHub and Google), they should be merged like the picture below whatever I use to log in (GitHub or Google), right?

IMG_20230723_212159

But it was not at firstAttempt (from my Phone). In firstAttempt, there was a cross (×) with Google if I used GitHub to log in and a cross (×) with GitHub if I used Google to log in. But in secondAttempt (from my Laptop), it was okay (merged) like the third picture above. By successful or unsuccessful I meant the facts (firstAttempt and secondAttempt) I already described.

Right now I mainly have two USACO Guide accounts. One is which I created first time using GitHub. At that time, the connected email (connected to GitHub) was the firstEmail and now the connected email is the secondEmail. That time I also logged in with Google (connected email was the firstEmail), and both of the USACO Guide accounts (created using Google and GitHub) were merged at secondAttempt (from my Laptop) as the email was same. Another one is which I created recently using Google (connected email is secondEmail). It is still not merged with the account created using GitHub, though the email address is same now after changing the primary email of my GitHub account to secondEmail.

What I wanted is whatever log in method (GitHub or Google) I use, they should be merged.

@bqi343

@bqi343
Copy link
Member

bqi343 commented Jul 23, 2023

I'm not that familiar w/ the login system, but you can try unlinking your first google account from your first USACO Guide account using https://support.google.com/accounts/answer/2541991?hl=en and then linking your second google account to your first USACO Guide account.

@bqi343
Copy link
Member

bqi343 commented Jul 23, 2023

@mGH-aam Did it work? Will close if it did.

You may want to export your user data (https://usaco.guide/settings#user-data) before doing this do make sure you don't lose anything.

@mGH-aam
Copy link

mGH-aam commented Jul 23, 2023

@mGH-aam Did it work? Will close if it did.

You may want to export your user data (https://usaco.guide/settings#user-data) before doing this do make sure you don't lose anything.

Hi @bqi343 , thanks for the info. I'll try it later and let you know as quick as possible (within 1/2 days). Today is my semester final exam. That's why I need time to try it.

@mGH-aam
Copy link

mGH-aam commented Jul 24, 2023

I'm not that familiar w/ the login system, but you can try unlinking your first google account from your first USACO Guide account using https://support.google.com/accounts/answer/2541991?hl=en and then linking your second google account to your first USACO Guide account.

@bqi343 I tried. But it didn't work, nothing happened. Everything is still like the above mentioned scenario I described before.

@bqi343 bqi343 added the backlog Work on this later label Jul 25, 2023
@thecodingwizard thecodingwizard changed the title Contact Form Submission - Website Bug Contact Form Submission - Website Bug (Sign in with Github + Google) Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Work on this later bug Something isn't working website website-related issue
Projects
None yet
Development

No branches or pull requests

3 participants