I would need some advice about a problem i had with my app, ion_auth and firefox
It often log me out without asking then i sometimes must restart firefox to be able to login again
Solved, seems to be a know bug in codeigniter database session handling.
ID is regenerated too fast, it breaks.
I fixed it by installing CI Native Session and no more random disconnecting search the forum for more infos
I have used Ion Auth in my project and I want to customize user table but I have not understood yet.
please show me how to change it or where i can find a proper post in order to solve my problem.
2) create new config file called email.php, with the following content:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/* | ------------------------------------------------------------------------- | Email | ------------------------------------------------------------------------- | This file lets you define parameters for sending emails. | Please see the user guide for info: | | http://ellislab.com/codeigniter/user-guide/libraries/email.html | */ $config['protocol']='smtp';
I downloaded Ion Auth library. I’m very new to codeigniter and need a little guidance using your library. Think of my site as being similar to craigslist.
I have 4 types of users
Listers- people who list ads
Viewers - People who view ads
One- Time - Listers (They dont have a subscription, they can only post one ad (pay as you go type thingy)
Admin - activate all of the above
Question - how do I set up these different users——?
Hi Ben, can I use my own tables? I mean I have a PostgreSQL database and this DB can’t be changed so there is a table for users but not for groups and permissions. So any tips?
First of all, I wanted to thank you for the great job you have made with Ion Auth. Discovering the possibilites everyday, and I have to admit it helps me a lot with my projects !
Wanted to point something out though. In your language files, there is a missing tag :
$lang['login_unsuccessful_not_active'] = '';
Not sure if it has already pointed out, just wanted to mention it in case.
Anyway, here is the translation at least for French (since I am) :
$lang['login_unsuccessful_not_active'] = 'Ce compte est inactif. Veuillez contacter votre administrateur.';
I am starting work on an application that will house multiple company’s with multiple users per company.
Depending on what company they work for and what their rights are different data will be loaded.
How suitable is Ion Auth for this? Is there an option for this within Ion Auth? Cause I am guessing the groups are ment for different right sets and not for say company separation?
I am starting work on an application that will house multiple company’s with multiple users per company.
Depending on what company they work for and what their rights are different data will be loaded.
How suitable is Ion Auth for this? Is there an option for this within Ion Auth? Cause I am guessing the groups are ment for different right sets and not for say company separation?
Yeah, it looks like you need another layer of separation on top of the existing groups. I don’t imagine it’s impossible to modify the library and model to make this work.
In addition, if you’d like a hacky solution, you can make different groups that have the company and rights builtin. It will be unwieldy, but you can get started immediately without modifying anything. Like instead of having two companies, MS and Apple with sub-groups like SysAdmins and Programmers; you’ll have 4 groups MS_SysAdmins, MS_Programmers, Apple_SysAdmins, Apple_Programmers. Like I said, it’s going to be unwieldy, but when things are urgent you gotta do something!
If you have only one company per user you could add an extra column to the user table, or even use the existing Company column.
You’d just need to use something like
Hello friends, just started digging into ion_auth and it looks pretty great. Gonna save me some time.
I have a question on expanding data on the users. I need to have information on addresses for all my users. Street/city/state/zip, the usual stuff. Should I add these fields to the users table or make my own table for user data? If I make the fields non-null, will that break inserts when ion_auth creates users?
Edit:
I have a follow up question. Is it ok to use
$this->ion_auth->is_admin()
or other user checks in the constructor of a Controller? If the authorization check fails, I want to redirect the user right away, without having to put in a checking code at the top of all the methods in the controller class. Whats the best way to do this and avoid code duplication?