Welcome Guest, Not a member yet? Register   Sign In
Ion auth and changing the tables acccording to my needs
#1

[eluser]mady[/eluser]
Hi friends,

I have a 2 different user types :

one type using the tables:

gold_auth
gold_user

and another one with:

silver_auth
silver_user

I assume that changes in config table like the following can do a trick for me.

How to handle the user type: can i do some thing like this:


if(gold)
{
config(gold_auth.php);
}
else
{
config(silver_auth.php);
}





Thanks,


#2

[eluser]Glazz[/eluser]
The tables are the same ? Same columns ?
#3

[eluser]Zaher Ghaibeh[/eluser]
why not to use the groups ?
since your users types are only a group ?
#4

[eluser]mady[/eluser]
no my table columns are very different one
#5

[eluser]InsiteFX[/eluser]
Kind of repeating yourself right!

Would have made more sense to have used groups with one user table and then setup another table for gold or silver.
#6

[eluser]mady[/eluser]
Hi Fx,

Actually my table structure may look awkward, bcas its my senior who designed. He has his own ideas.

But i am in a position to use the ion-auth, so pls dont bother that.

Thanks,
#7

[eluser]mady[/eluser]
Anyone has idea regarding ion auth




Theme © iAndrew 2016 - Forum software by © MyBB