From 6a574b66fef74a78d94006d8d78eb2924648bb29 Mon Sep 17 00:00:00 2001 From: Zaxar163 <35835496+Zaxar163@users.noreply.github.com> Date: Mon, 5 Nov 2018 12:36:35 +0300 Subject: [PATCH] Fix phpbb.php! --- compat/auth/phpbb.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/auth/phpbb.php b/compat/auth/phpbb.php index 724123af..4f80ad54 100644 --- a/compat/auth/phpbb.php +++ b/compat/auth/phpbb.php @@ -5,7 +5,7 @@ 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('Введены неверные данные'); } // Load PHPBB Core @@ -16,5 +16,5 @@ include($phpbb_root_path . 'common.' . $phpEx); // Try authenticate $result = $auth->login($login, $password, false, false, false); -echo($result['status'] === LOGIN_SUCCESS ? 'OK:' . $result['user_row']['username'] : 'Incorrect login or password'); +echo($result['status'] === LOGIN_SUCCESS ? 'OK:' . $result['user_row']['username'] : 'Ошибка при авторизации'); ?>