Search code examples
codeigniterauthenticationion-auth

Ion Auth User and Admin Issue - CodeIgniter


I'm using Ion Auth for my website authentication, and it's a wonderful tool with one slight issue. Whenever a user is created, they are automatically created as an administrator and not a member or general user even though this is specified within my ion_auth config file. Has anyone else come across this issue, or know how to resolve this?


Solution

  • In application/config/ion_auth.php

    $config['default_group'] = 'members';
    

    'members' must be inserted in the 'groups' table defined by:

    $config['tables']['groups'] = 'groups';
    

    If this not works the problem is in another part...