Launcher/compat/auth/wordpress.php
Zaxar163 3962041825 Fix ipb.php! (fixed locale). (#42)
* Fix ipb.php! (fixed locale).

* Fix phpbb.php!

* wordpress.php locale!

* Fix xenforo.php! (locale)

* Update ipb.php

* Fix dle die logging!

* Update dle.php
2018-11-05 16:50:46 +07:00

15 lines
444 B
PHP

<?php
header("Content-Type: text/plain; charset=UTF-8");
// Verify login and password
$login = $_GET['login'];
$password = $_GET['password'];
if(empty($login) || empty($password)) {
exit('Введены неверные данные');
}
// Try authenticate
require_once('wp-load.php');
$user = wp_authenticate($login, $password);
echo($user instanceof WP_User ? 'OK:' . $user->user_login : 'Ошибка при авторизации');
?>