Security module Free feature

Hide login errors

Replaces WordPress login error messages with a single generic one, so a failed attempt never confirms that a username exists.

What it does

One message instead of a diagnosis

Hide login errors is a Vectro security feature that replaces the specific WordPress login failure messages with a single generic message, so a failed attempt never confirms whether a username exists.

WordPress is helpful when a login fails, and that is the problem. Enter a username that does not exist and it says the username is unknown. Enter a real username with the wrong password and it says the password is incorrect. The difference between those two messages tells you which usernames are real.

This feature replaces both with a single message: “Incorrect username or password. Please try again.” The same message appears whichever part was wrong.

Everything else about the login flow is unchanged. Genuine users see one slightly less specific message and carry on.

Why it matters

The error message is a free oracle

An attacker who can distinguish “no such user” from “wrong password” can test usernames cheaply and build a confirmed list before attempting a single password. That turns one large guessing problem into two much smaller ones, and the second is far more likely to succeed.

A generic message removes that signal. An attacker who has to guess both the username and the password simultaneously is facing a search space large enough that automated attacks stop being worthwhile – which is exactly the outcome you want, and it costs your real users almost nothing.

No username confirmation
A failed attempt reveals nothing about whether the account exists.
One consistent message
Both failure modes return “Incorrect username or password. Please try again.”
No impact on real logins
Successful sign-ins are unchanged. Only the failure text differs.
Works well with rate limiting
Combined with the login attempt limiter, guessing becomes both uninformative and slow.

How to use it

A single toggle

1
Open the Security module
Go to Vectro > Security in wp-admin.
2
Toggle Hide Login Errors on
Login failure messages are replaced from this point.
3
Save Security Settings
No configuration values are required.
4
Verify in a private window
Attempt a login with a deliberately wrong username, then with a real username and a wrong password. Both should return the same message.

Technical detail

Where the message is replaced

Vectro filters the error text shown on the WordPress login screen and substitutes a single generic message, whatever error was raised. The authentication logic itself is untouched – the account check, the password comparison and the resulting success or failure are all unchanged.

The replacement covers every error shown on the login screen. That includes errors on the lost password form and the lockout notice from the login attempt limiter, which a locked-out visitor will also see as the generic message.

Replaces
Every error message on the WordPress login screen, including lost password errors and the lockout notice.
Message shown
“Incorrect username or password. Please try again.”
Authentication logic
Unchanged. Only the message returned on failure differs.
Password reset
Reset emails are unchanged. Errors on the lost password form show the generic message.
Pairs with
Login attempt limiter, for slow and uninformative guessing.
On deactivation
The original WordPress messages return.

Compatibility

Runs alongside everything

No conflicts detected. Vectro runs this feature regardless of other plugins active.

Questions

Frequently asked

What does hiding WordPress login errors do?

Hiding login errors replaces the separate unknown username and incorrect password messages with one generic message reading “Incorrect username or password. Please try again.” An attacker can no longer tell which half of the credentials was wrong.

Does hiding login errors work with other security plugins?

Vectro runs this feature regardless of other plugins active, because no conflicts are detected for it. If another plugin also filters login errors, whichever applies last determines the message shown.

How do I hide login error messages in Vectro?

Go to Vectro > Security in wp-admin and toggle Hide Login Errors on. Test it in a private window by trying a wrong username and then a real username with a wrong password, which should both return the same message.

Is hiding login errors in Vectro free or Pro?

Yes, Hiding login errors is free. It is included in the free Vectro plugin on WordPress.org with no account required.

Does hiding login errors affect the WordPress password reset form?

Yes, for error messages. Any error shown on the lost password form is replaced with the same generic message. The reset email itself is unchanged, and a valid reset request works as normal.

Related features

Make guessing pointless

Vectro Pro adds a login activity log and password strength enforcement across all users. See Pro plans

Download Vectro free on WordPress.org

27 features across Security, Performance and Maintenance. No account required, no expiry, unlimited sites.

Scroll to Top