PHP Version
7.4
CodeIgniter4 Version
4.3.1
Shield Version
develop
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
MariaDB 10.4.18
Did you customize Shield?
No.
What happened?
When I tried to login with the details of an inactive user, I get redirected back to the login page, with the message:
You must activate your account before logging in.
Which is normal, but it comes with the following unanswered questions:
- What next?
- What are the criteria for an active account?
- How do I go about the activation?
Steps to Reproduce
Login using the credentials of an inactive user.
Expected Output
I expect that the user is redirected to the account activation page, and the activation code resent to the user's email address.
Anything else?
This bug was fixed in #391, but was no longer implemented OR overtaken by #580. See
| // Block inactive users when Email Activation is enabled |
| $user = $authenticator->getUser(); |
| if ($user !== null && ! $user->isActivated()) { |
| $authenticator->logout(); |
| |
| returnredirect()->route('login') |
| ->with('error', lang('Auth.activationBlocked')); |
| } |
PHP Version
7.4
CodeIgniter4 Version
4.3.1
Shield Version
develop
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
MariaDB 10.4.18
Did you customize Shield?
No.
What happened?
When I tried to login with the details of an inactive user, I get redirected back to the login page, with the message:
Which is normal, but it comes with the following unanswered questions:
Steps to Reproduce
Login using the credentials of an inactive user.
Expected Output
I expect that the user is redirected to the account activation page, and the activation code resent to the user's email address.
Anything else?
This bug was fixed in #391, but was no longer implemented OR overtaken by #580. See
shield/src/Filters/SessionAuth.php
Lines 52 to 59 in 5f180c4