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

[eluser]haseydesign[/eluser]
@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);


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



Theme © iAndrew 2016 - Forum software by © MyBB