I'm so close to understanding how to do this. Please help me understand.
I have members/users who register by filling out a form and then are added to a group. Works great.
I need to set a field in the user/member's record that is set to disabled and they are not able to login until I manually set them to enabled.
So, I figured out I will need to 'extend' the member object to add a field called loginstatus to each members profile/record.
Then I need to be able to check this status if they user tries to login and give them a msg that says you are currently disabled or we are reviewing you account...
This is where I'm stuck. I get the concept. I don't know how to implement specifically.
I think I need to create a newuserstatus.php file and extend the member object with a new field called 'LoginStatus'
then I need to say class LoginStatus extends DataObjectDecorator and then
update the CMSFields to reflect the new LoginStatus field. (I'm starting to get confused and don't know how to write this out properly)
I don't know how to get the login to check to see if the user is enabled or disabled and act appropiately.
I feel so close to getting this (somewhat) but my brain gets twisted and I loose my way.
Can you help me understand how to do this?
Thank you in advance.
Terry