Good-Bids / goodbids

0 stars 0 forks source link

[oAuth] Requesting password reset or setting new password as SSO user #604

Open shascher opened 8 months ago

shascher commented 8 months ago

Currently, for users that have signed in via oAuth, there is no password set at account creation. Because of this, oAuth registered users are not able to functionally request a password reset or change their password in the dashboard.

Questions

  1. Do we have any way of identifying if a user signed up using oAuth for account creation?
  2. Are there any settings that provide the ability for an oAuth user to set a password without needing to have previously set a password?

Ideal Functionality for users who have signed up via oAuth

linear[bot] commented 8 months ago

GOO-212 [oAuth] Requesting password reset or setting new password as SSO user

nathan-schmidt-viget commented 8 months ago

Tested this out and you can not login as a normal user if you have login with OAuth. Because OAuth did the password for you. If you want to change to a normal login you will need to reset the password by clicking Lost your password? link. That will send the user an email (once emails are working for OAuth - the emails is showing up in WP email logs) with a link to reset the password. The user can not reset the password through the account page as it requires the current password and because a password was never set you can't reset to a new one.

The only thing left is to fix the emails not sending #603

shascher commented 8 months ago

@nathan-schmidt-viget - Added two questions up top for this around if we know the user registered via OAuth and then if so, can we hide the reset password fields for that user in My Account?