ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

ion_auth create_user()

October 03, 2013 2:11am

Subscribe [1]
  • #1 / Oct 03, 2013 2:11am

    schahal

    1 posts

    while creating a new user using ion_auth i have added
    echo anchor(‘auth/create_user’, ‘Create User’);
    at the end of auth/login view.

    now when i click on this link it cycles back and brings me back to the auth/login view.

    in routes i made the following additions:

    $route[‘auth/create_user’] = ‘auth/create_user’;
    $route[‘default_controller’] = ‘auth/login’;
    $route[’(:any)’] = ‘auth/login’;

    however when i comment out the
    if (!$this->ion_auth->logged_in() || !$this->ion_auth->is_admin())

    in the auth/create_user method and then click on the Create User link it is working fine and taking me to the auth/create_user link and I can create a user.

    I cant figure out why this is happening…

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases