helpy icon indicating copy to clipboard operation
helpy copied to clipboard

Inactiveting users

Open neliojrr opened this issue 9 years ago • 6 comments

Is the 'Active' checkbox working? I tried to set off but it doesn't seems to work. The checkbox is unchecked and in the database the users column 'active' is set as false but the user is still able to log in.

neliojrr avatar Dec 17 '16 03:12 neliojrr

Hmmm sounds like a bug, thanks for reporting. Will see if we can fix it :)

scott avatar Dec 21 '16 18:12 scott

Had a little look at this, seems that there is indeed a field in the users table. But I can't see any overriding of Devise::SessionsController adding in an extra check for that field.

CGA1123 avatar Dec 21 '16 18:12 CGA1123

If you want, go ahead and submit a PR :)

scott avatar Dec 21 '16 19:12 scott

@CGA1123 hi, have you started it or i could?

lukin-io avatar Dec 22 '16 09:12 lukin-io

@sesharim feel free to start on it. You just need to create a cutom devise controller, with an extra check for User#active before allowing a sign in.

There's some helpful pointers here for how you might start off.

CGA1123 avatar Dec 22 '16 10:12 CGA1123

Hey @sesharim any updates on this?

scott avatar Dec 29 '16 16:12 scott