CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#12791] Missing registration of Core::LoginPre hook

avatar
Created By: Magal (magallo)
Date Submitted: Wed Jul 16 06:02:22 -0400 2025

Assigned To: Magal (magallo)
Version: 2.2.21
CMSMS Version: 2.2.21
Severity: Minor
Resolution: None
State: Open
Summary:
Missing registration of Core::LoginPre hook
Detailed Description:
The Core::LoginPre hook is invoked in admin/login.php but not registered in the
event list during installation. This causes inconsistency in hook availability.
Additionally, a new hook "Core::Login" or "Core::OnLogin" is recommended to
support module-level customization of login user experience.

admin/login.php line 201
\CMSMS\HookManager::do_hook('Core::LoginPre', [ 'user'=>$oneuser  ] );

LoginPre is not registered in the events list in the database during
installation

LoginPost OK
LogoutPost OK
LoginFailed OK


History