mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-03 23:11:57 +03:00
wordpress.php locale!
This commit is contained in:
parent
6a574b66fe
commit
b5848c10e6
1 changed files with 2 additions and 2 deletions
|
@ -5,11 +5,11 @@ header("Content-Type: text/plain; charset=UTF-8");
|
||||||
$login = $_GET['login'];
|
$login = $_GET['login'];
|
||||||
$password = $_GET['password'];
|
$password = $_GET['password'];
|
||||||
if(empty($login) || empty($password)) {
|
if(empty($login) || empty($password)) {
|
||||||
exit('Empty login or password');
|
exit('Введены неверные данные');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try authenticate
|
// Try authenticate
|
||||||
require_once('wp-load.php');
|
require_once('wp-load.php');
|
||||||
$user = wp_authenticate($login, $password);
|
$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 : 'Ошибка при авторизации');
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue