userstyles.world icon indicating copy to clipboard operation
userstyles.world copied to clipboard

Can't switch to login with email/password from OAuth provider

Open Black-Platypus opened this issue 3 years ago • 3 comments

After registering with GitHub, I'd like to switch to an independent login using email and password. This is offered by the login form. However, upon setting a password using the "forgot my password" procedure, I still can't log in independently, the site just tells me to use "Login via OAuth provider" At least I think that that's what it wants to tell me by just saying "Login via OAuth provider". (As far as I'm concerned, "login" is a noun; the verb should be "log in", so if the above interpretation is correct, maybe change the message?)

As the site both

  • Offers login via email + PW

  • Has my email and PW:

    image

It should enable logging in this way.

  • Browser: Current-ish Chrome
  • Screenshot: image

Black-Platypus avatar Aug 08 '22 20:08 Black-Platypus

@Gusted I wonder, is there any particular reason for this check?

https://github.com/userstyles-world/userstyles.world/blob/f5b5ee800f777ca44dcb773a4351f0a3ff59e978/handlers/user/login.go#L66-L72

As for suggesting to change the message, thank you for pointing that out. English isn't my first language and I still have a lot to learn. 😄

vednoc avatar Aug 14 '22 20:08 vednoc

English isn't my first language and I still have a lot to learn. 😄

Oh 😊 Mine either, but I think something like "Please log in via OAuth provider" would be a bit clearer

Black-Platypus avatar Aug 14 '22 20:08 Black-Platypus

Sounds good to me. Ideally, we wouldn't need to have this warning. I don't know why it's there, but I do know we need to rethink how we deal with OAuth.

vednoc avatar Aug 14 '22 20:08 vednoc

Hey @svArtist, I've just deployed a new update and it would be awesome if you could confirm whether the issue has been resolved. If it is, I'll close it by merging the commits into main branch.

vednoc avatar Aug 20 '22 21:08 vednoc

Yes! Neat-o! Thank you, I could use the new login directly, didn't even have to set a password again 😊 👍

Black-Platypus avatar Aug 21 '22 03:08 Black-Platypus

For posterity, I've allowed leaving the "current password" empty for those that signed up via OAuth, so that new passwords can be set without using the "forgot my password" hack. 😄

vednoc avatar Aug 24 '22 22:08 vednoc