CodeIgniter Forums
Community Auth - User Creation Error(s) after install - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13)
+--- Thread: Community Auth - User Creation Error(s) after install (/showthread.php?tid=67289)



Community Auth - User Creation Error(s) after install - mblondin - 02-05-2017

All,

I just installed Community Auth and when going to http://localhost/.../index.php/examples/create_user I get:

User Creation Error(s)
Username already in use.

Email address already in use.

Also

Fronm that page the Login link brings me to /index.php/login?redirect=examples and I get a 404 Page Not Found


RE: Community Auth - User Creation Error(s) after install - skunkbad - 02-05-2017

Double check all steps of installation. Read carefully.

Especially since you are getting the 404, it seems you may not have added the login page to your routes config:


PHP Code:
$route[LOGIN_PAGE] = 'examples/login'



RE: Community Auth - User Creation Error(s) after install - mblondin - 02-06-2017

(02-05-2017, 04:17 PM)skunkbad Wrote: Double check all steps of installation. Read carefully.

Especially since you are getting the 404, it seems you may not have added the login page to your routes config:


PHP Code:
$route[LOGIN_PAGE] = 'examples/login'

Thank you, all good except for Ajax login seems not working.  I get POST http://localhost/examples/ajax_attempt_login 404 (Not Found)   jquery-1.12.0.min.js:4


RE: Community Auth - User Creation Error(s) after install - skunkbad - 02-06-2017

It is because the ajax_login method was not using site_url to generate the URLs for ajax (assuming you are still using index.php in your URLs).