Skip to content

Bug: when active field in users table is false users can login #459

@datamweb

Description

@datamweb

PHP Version

8.1.5

CodeIgniter4 Version

4.2.5

Shield Version

dev

Which operating systems have you tested for this bug?

Windows

Which server did you use?

apache

Database

MySQL 5.6

Did you customize Shield?

No.

What happened?

The login operation for a user who is not active is completed successfully. In general, a user who is not active for any reason should not login to the system.

Steps to Reproduce

  1. Register a new user.
  2. Change the value of active true to false.
  3. Perform the login operation.
  4. A user who is inactive login without a problem!!

Expected Output

Failure of the user login to the system and display the error message "Your account is inactive".

Anything else?

see https://forum.codeigniter.com/showthread.php?tid=83481

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions