Welcome Guest, Not a member yet? Register   Sign In
flexi auth - A user authentication library for CodeIgniter

[eluser]katanama[/eluser]
[quote author="haseydesign" date="1355825547"]@katanama

Your assumptions on the differences between 'activate' and 'suspend' sound like they are correct.

'uacc_active' indicates whether the user has performed an additional action to verify their account is genuine and valid.
Typically (As in the demo), an account is activated by the user clicking an emailed link containing a validation token that verifies the users email address is valid.

'uacc_suspend' defines whether a user should be allowed to login to their account, regardless of whether they have activated their account or not. You can use this for whatever reason you desire, it can be temporary or permanent, but when set as '0', the user will not be able to login.

To set the 'uacc_suspend' value, you would use the 'update_user()' function.
http://haseydesign.com/flexi-auth/user_g...pdate_user

Code:
$user_id = 101;
$user_data = array('uacc_suspend' => '0');

$this->flexi_auth->update_user($user_id, $user_data);
[/quote]

Thank you!

I'm impressed by your diligence in answering our questions.
May god bless you.

The solution you give, using update_user() is also elegant, I didn't thought about it... I accessed the db directly and am going to change my codes, it's shorter and semantically pleasing.


Messages In This Thread
flexi auth - A user authentication library for CodeIgniter - by El Forum - 12-18-2012, 07:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB