Closed projectwehelp closed 1 year ago
Hello @projectwehelp, thanks for the report.
This is not a bug, please adjust as below.
public array $actions = [
'register' => \CodeIgniter\Shield\Authentication\Actions\EmailActivator::class,
'login' => null,
];
Yes, it is working now! the quotes were getting in the way.
Appreciate the quick response & solution!
PHP Version
8.1.8
CodeIgniter4 Version
4.3.4
Shield Version
v1.0.0-beta.6
Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
10.6.12-MariaDB-0ubuntu0.22.04.1
Did you customize Shield?
no
What happened?
Enable Two-Factor Authentication for 'Register' making the following changes in App/Config/Auth.php
But when attempting to do a test registration get the following error message:
Steps to Reproduce
Standard 6 step install as per install guide in github.
Standard default register, login , logout working fine out of box.
On making the changes on App/Config/Auth.php to Enable Two-Factor Authentication for 'Register':
After that attempting to do a test registration get the following error message:
Log files says:
Expected Output
It should have worked and sent the 2FA email to complete the Registration.
Anything else?
Also, the new accounts get registered and but login using the new accounts says user not activated.