Remove Logging class, as it is deprecated

This commit is contained in:
DariusIII
2018-02-08 15:58:23 +01:00
parent dd80123f7e
commit fb916bf33e
2 changed files with 1 additions and 4 deletions
+1
View File
@@ -1,4 +1,5 @@
2018-02-08 DariusIII
* Chg: Remove Logging class, as it is deprecated
* Chg: Adjust variables for sphinx in NameFixer class
* Chg: Remove extra argumnet for sphinxsearch deletRelease function
* Chg: Update logging configuration
-4
View File
@@ -1,7 +1,6 @@
<?php
use nntmux\Captcha;
use nntmux\Logging;
use App\Models\User;
use App\Models\Settings;
use nntmux\utility\Utility;
@@ -17,7 +16,6 @@ if (! User::isLoggedIn()) {
$username = htmlspecialchars($_POST['username']);
$page->smarty->assign('username', $username);
if (Utility::checkCsrfToken() === true) {
$logging = new Logging(['Settings' => $page->settings]);
$res = User::getByUsername($username);
if ($res === null) {
$res = User::getByEmail($username);
@@ -39,11 +37,9 @@ if (! User::isLoggedIn()) {
die();
} else {
$page->smarty->assign('error', 'Incorrect username/email or password.');
$logging->LogBadPasswd($username, $_SERVER['REMOTE_ADDR']);
}
} else {
$page->smarty->assign('error', 'Incorrect username/email or password.');
$logging->LogBadPasswd($username, $_SERVER['REMOTE_ADDR']);
}
} else {
$page->showTokenError();