Hi,
it “appears” our userLoggingIn() event is not firing.
I have code in there to check that the login is coming from valid countries, when we tested with an invalid country, the login still occurred, and it went on to the 2fa stage and then userLoggedIn(). it should have stopped and displayed a message…
we stripped all code from the function and put a die() in there, and it still continues to login successfully and moves onto the userLoggedIn() event
// User Logging In event
public function userLoggingIn(string $userName, string &$password): bool
{
echo "not going far....";
die();
}
it looks like the code in login.php at run() - $valid is never true, thus userLoggingIn is never accessed,
public function run(): void:
if (!$valid) {
$this->resetCaptcha();
}
if ($valid) {
// Call Logging In event
$valid = $this->userLoggingIn($this->Username->CurrentValue, $this->Password->CurrentValue);
no console errors whatsoever, any user regular or admin.
Thanks,
JS