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

[eluser]haseydesign[/eluser]
Hey Klausch,

What you need to do to automatically activate user accounts is set the 'activate' argument as 'true' when inserting the user via the 'insert_user()' function.
You can read up on this function at http://haseydesign.com/flexi-auth/user_g...nsert_user

By setting the account activation to 'true', users will instantly be able to use their account. However, if you were wishing to just by-pass the activation email, and still have an admin review the account, then there is a setting in the config file to suspend all new accounts.

Code:
$config['settings']['suspend_new_accounts'] = true;
You can read up on this setting at http://haseydesign.com/flexi-auth/user_g...g_settings

-----------------------------------------------------------

A little off topic regarding not sending emails from the dev environment.
If the reason you've not got this running is the associated hassle setting it up (Setting up Mercury via Xampp was a nightmare for me), may I recommend try installing hmailserver, you can even associate the SMTP with a GMail account just for testing.

Another mail server I saw just yesterday was Mailcatcher, but I haven't personally tried this yet.

-----------------------------------------------------------

I'm interested in your comments regarding the database keys.
You're right that the foreign key constraints should be defined, I'll add this with my next round of tweaks.
Regarding some of primary keys being redundant, could you elaborate a little more on which fields you are referring to?


Messages In This Thread
flexi auth - A user authentication library for CodeIgniter - by El Forum - 09-18-2012, 09:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB