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

Disable Username Field #62

Open
davidmatthewcoleman opened this issue Dec 3, 2023 · 1 comment
Open

Disable Username Field #62

davidmatthewcoleman opened this issue Dec 3, 2023 · 1 comment

Comments

@davidmatthewcoleman
Copy link

It would be great if I could disable the username field, as every browser I've tested works without entering it.

@fvdm
Copy link

fvdm commented Mar 6, 2024

I agree. I enabled 'Allow to login without username' and set the 'Preferred login method' to 'WebAuthn only', but each time the username field is causing the 1Password suggestions to appear over the Auth button. I have to click those away before getting to the passkey auth.

It would be great if the username field can be removed or hidden. Disabling the suggestions in 1P is not an option because they are handy for non-passkey sites.

For now I did a little hack:

/my-theme/functions.php

function my_login_css() {
  wp_enqueue_style( 'custom-login', get_stylesheet_directory_uri() . '/style-login.css' );
}

add_action( 'login_enqueue_scripts', 'my_login_css' );

/my-theme/style-login.css

.wwa-webauthn-only label,
.wwa-webauthn-only input {
  display: none;
}

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

No branches or pull requests

2 participants