Welcome Guest, Not a member yet? Register   Sign In
active field in users table of Shield
#1

Hi there, trying Shield. When active field in users table is 0, users CAN login anyway. Is that correct?

Thanks!
Reply
#2

User table active is for when you activate the user, like you send them and email to activate their account.

If active is false the user should not be able to login until active is true.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

Yes, correct. I understand the concept but currently if the active field is 0 (does not accept NULL) the user can log in anyway.
Therefore I understand that it is not yet implemented in shield. That's correct? Thanks
Reply
#4

@Lihuen This issue has been resolved. If the user is not active, it is not possible to login.
Reply
#5

Hi,

I have updated to the latest Codeigniter 4.4.1 using composer. My composer.json has the line "codeigniter4/shield": "^1.0.0-beta" and as far as I can tell I have v1.0.0-beta.6 installed.

Should the active user fix have been implemented as I am still able to login as a user with active = 0 in the users table.  Is there something else I need to do?

Thanks
Mark
Reply
#6

(02-05-2023, 08:30 AM)datamweb Wrote: @Lihuen This issue has been resolved. If the user is not active, it is not possible to login.

Even though I'm using v1.0.0-beta.7, users can still log in, even if their status is set to active=0
Reply
#7

See https://codeigniter4.github.io/shield/re...activation
Reply




Theme © iAndrew 2016 - Forum software by © MyBB