[OzzModz] Failed Login Log

[OzzModz] Failed Login Log 2.0.0 Patch Level 7

No permission to download

Ozzy47

Well-known member
Ozzy47 submitted a new resource:

[OzzModz] Failed Login Log - Log failed logins to the site

Requirements:
XenForo 2.2+

Description:
This small addon will add a failed login log on your site. This will record every time a user login fails the password. This can be useful for seeing brute force attempts, or if a user is having issues. You can set how long to store the entries for. There are user permissions as to who can see the log, I suggest admins and mods only.

Link:
View attachment 299744

Example List:
[ATTACH...

Read more about this resource...
 
If a user tries to log in where the username isn't valid, a server error is thrown:

Code:
Server error log
ErrorException: [E_WARNING] Attempt to read property "user_id" on null src/addons/OzzModz/LoginLogX/XF/Service/User/Login.php:41
Generated by: Unknown account Mar 16, 2024 at 5:30 PM
Stack trace
#0 src/addons/OzzModz/LoginLogX/XF/Service/User/Login.php(41): XF::handlePhpError(2, '[E_WARNING] Att...', '/home/mattwserv...', 41)
#1 src/addons/SV/PasswordTools/XF/Service/User/Login.php(19): OzzModz\LoginLogX\XF\Service\User\Login->validate('*****', Object(XF\Phrase))
#2 src/XF/Pub/Controller/Login.php(96): SV\PasswordTools\XF\Service\User\Login->validate('*****', Object(XF\Phrase))
#3 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Login->actionLogin(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Login', 'Login', Object(XF\Mvc\RouteMatch), Object(DigitalPoint\Cloudflare\XF\Pub\Controller\Login), NULL)
#5 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DigitalPoint\Cloudflare\XF\Pub\Controller\Login), NULL)
#6 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#8 src/XF.php(524): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}

1710610322746.webp
 
If a user tries to log in where the username isn't valid, a server error is thrown:

Code:
Server error log
ErrorException: [E_WARNING] Attempt to read property "user_id" on null src/addons/OzzModz/LoginLogX/XF/Service/User/Login.php:41
Generated by: Unknown account Mar 16, 2024 at 5:30 PM
Stack trace
#0 src/addons/OzzModz/LoginLogX/XF/Service/User/Login.php(41): XF::handlePhpError(2, '[E_WARNING] Att...', '/home/mattwserv...', 41)
#1 src/addons/SV/PasswordTools/XF/Service/User/Login.php(19): OzzModz\LoginLogX\XF\Service\User\Login->validate('*****', Object(XF\Phrase))
#2 src/XF/Pub/Controller/Login.php(96): SV\PasswordTools\XF\Service\User\Login->validate('*****', Object(XF\Phrase))
#3 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Login->actionLogin(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Login', 'Login', Object(XF\Mvc\RouteMatch), Object(DigitalPoint\Cloudflare\XF\Pub\Controller\Login), NULL)
#5 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DigitalPoint\Cloudflare\XF\Pub\Controller\Login), NULL)
#6 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#8 src/XF.php(524): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}

View attachment 299761

Fixed in the latest version.
 
Code:
XF\Db\InvalidQueryException: xf_ozzmodz_login_logx: MySQL statement prepare error [1101]: BLOB, TEXT, GEOMETRY or JSON column 'username' can't have a default value in src/XF/Db/AbstractStatement.php at line 230
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 198
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 41
XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 56
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
XF\Db\AbstractAdapter->query() in src/XF/Db/Schema/AbstractDdl.php at line 158
XF\Db\Schema\AbstractDdl->apply() in src/XF/Db/SchemaManager.php at line 191
XF\Db\SchemaManager->createTable() in src/addons/OzzModz/LoginLogX/Setup.php at line 24
OzzModz\LoginLogX\Setup->installStep1() in src/XF/AddOn/StepRunnerInstallTrait.php at line 62
OzzModz\LoginLogX\Setup->installStepRunner() in src/XF/AddOn/StepRunnerInstallTrait.php at line 29
OzzModz\LoginLogX\Setup->install() in src/XF/Admin/Controller/AddOn.php at line 419
XF\Admin\Controller\AddOn->actionInstall() in src/XF/Mvc/Dispatcher.php at line 352
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2487
XF\App->run() in src/XF.php at line 524
XF::runApp() in admin.php at line 13
 
Code:
XF\Db\InvalidQueryException: xf_ozzmodz_login_logx: MySQL statement prepare error [1101]: BLOB, TEXT, GEOMETRY or JSON column 'username' can't have a default value in src/XF/Db/AbstractStatement.php at line 230
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 198
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 41
XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 56
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
XF\Db\AbstractAdapter->query() in src/XF/Db/Schema/AbstractDdl.php at line 158
XF\Db\Schema\AbstractDdl->apply() in src/XF/Db/SchemaManager.php at line 191
XF\Db\SchemaManager->createTable() in src/addons/OzzModz/LoginLogX/Setup.php at line 24
OzzModz\LoginLogX\Setup->installStep1() in src/XF/AddOn/StepRunnerInstallTrait.php at line 62
OzzModz\LoginLogX\Setup->installStepRunner() in src/XF/AddOn/StepRunnerInstallTrait.php at line 29
OzzModz\LoginLogX\Setup->install() in src/XF/Admin/Controller/AddOn.php at line 419
XF\Admin\Controller\AddOn->actionInstall() in src/XF/Mvc/Dispatcher.php at line 352
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2487
XF\App->run() in src/XF.php at line 524
XF::runApp() in admin.php at line 13

Uninstall the addon if it installed, delete the files, and install Patch level 2
 
Code:
    ErrorException: [E_WARNING] Undefined array key "loginsTruncatex" src/addons/OzzModz/LoginLogX/Cron/LoginLog.php:13

    Generated by: Unknown account Mar 16, 2024 at 5:11 PM

Stack trace

#0 src/addons/OzzModz/LoginLogX/Cron/LoginLog.php(13): XF::handlePhpError(2, '[E_WARNING] Und...', '/home/nginx/dom...', 13)
#1 src/XF/Job/Cron.php(37): OzzModz\LoginLogX\Cron\LoginLog::runCleanLog(Object(XF\Entity\CronEntry))
#2 src/XF/Job/Manager.php(260): XF\Job\Cron->run(8)
#3 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#4 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#5 job.php(43): XF\Job\Manager->runQueue(false, 8)
#6 {main}

Request state

array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(55) "https://forum.domain/tags/beta-diversity/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Code:
    ErrorException: [E_WARNING] Undefined array key "loginsTruncatex" src/addons/OzzModz/LoginLogX/Cron/LoginLog.php:13

    Generated by: Unknown account Mar 16, 2024 at 5:11 PM

Stack trace

#0 src/addons/OzzModz/LoginLogX/Cron/LoginLog.php(13): XF::handlePhpError(2, '[E_WARNING] Und...', '/home/nginx/dom...', 13)
#1 src/XF/Job/Cron.php(37): OzzModz\LoginLogX\Cron\LoginLog::runCleanLog(Object(XF\Entity\CronEntry))
#2 src/XF/Job/Manager.php(260): XF\Job\Cron->run(8)
#3 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#4 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#5 job.php(43): XF\Job\Manager->runQueue(false, 8)
#6 {main}

Request state

array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(55) "https://forum.domain/tags/beta-diversity/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Should be fixed in the latest version.
 
omg
Code:
Template Compilation Error
public:ozzmodz_login_log - Column 'display_style_group_id' is unknown in /var/www/*/data/*/src/XF/Mvc/Entity/Entity.php:612
 
Back
Top Bottom