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

Add option to disable email and password login on wp-login.php #47

Open
davisshaver opened this issue Feb 11, 2023 · 0 comments
Open

Add option to disable email and password login on wp-login.php #47

davisshaver opened this issue Feb 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@davisshaver
Copy link
Owner

Inspired by feedback on the WordPress.org forum – do we want to add an option to disable email and password login on wp-login.php?

The code to disable email and password login would look something like this:

remove_filter( 'authenticate', 'wp_authenticate_username_password', 20, 3 );
remove_filter( 'authenticate', 'wp_authenticate_email_password', 20, 3 );

One downside to doing this: Site administrators could find themselves locked out if they haven't properly configured RainbowKit Login to recognize their account as an admin account.

Maybe if we add the option to disable email and password login, we could also generate a secret login URL. Something like yoursite.com/wp-login.php?wp_rainbow_secret_login_token=L4JRGJ6F38 where L4JRGJ6F38 is a randomly generated token stored in the database. Then the site admin could save this URL so they can access the site using email and password if needed.

@davisshaver davisshaver added the enhancement New feature or request label Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant