Created
April 25, 2015 14:49
-
-
Save SErr0r/d025774ecf7563b0a528 to your computer and use it in GitHub Desktop.
Подтверждение информации для входа (Login Error Message)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function failed_login () { | |
| return 'the login information you have entered is incorrect.'; | |
| } | |
| add_filter ( 'login_errors', 'failed_login' ); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Основной недостаток текущей формы авторизации WordPress в том, что он информирует о том, какая часть информации введена неверно. Например, если имя пользователя правильное, а пароль неверен, WordPress сообщит об этом пользователю. Это упрощает использование брутфорса, поскольку взломщик точно знает, что нужно изменить — логин или пароль.