mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 02:08:57 +00:00
Remove Logging class, as it is deprecated
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user