diff --git a/compat/auth/wordpress.php b/compat/auth/wordpress.php index 95ff2d01..04903cae 100644 --- a/compat/auth/wordpress.php +++ b/compat/auth/wordpress.php @@ -5,11 +5,11 @@ header("Content-Type: text/plain; charset=UTF-8"); $login = $_GET['login']; $password = $_GET['password']; if(empty($login) || empty($password)) { - exit('Empty login or password'); + exit('Введены неверные данные'); } // Try authenticate require_once('wp-load.php'); $user = wp_authenticate($login, $password); -echo($user instanceof WP_User ? 'OK:' . $user->user_login : 'Incorrect login or password'); +echo($user instanceof WP_User ? 'OK:' . $user->user_login : 'Ошибка при авторизации'); ?>