User_Registered not firing messages?

v2025

public function userRegistered(array $row): void
{
    $this->addFailureMessage("Unable to onboard your account. contact support.");
    $this->terminate("login");                    

}

unable to get a message to display in this function. with or without ->terminate(). anyone confirm. no error messages noted.
its not even displaying the default success message.

Try setFailureMessage instead of addFailureMessage.

tried that as well…
I removed all the code entirely from the function and its not even firing the default “RegisterSuccessActivate” or “RegisterSuccess” messages. the email is received.

i remember i had the similar issue and it was due to a JS error, but I don’t see any at this point on the form…

debugging, the code is fired but still nothing displays

After registration, which page did you see?

it goes to the login page.