EllisLab text mark
Advanced Search
     
User Authentication Class - no longer exists?
Posted: 12 November 2012 11:24 AM
Joined: 2011-03-17
28 posts

I’m coming from CI 1.7 to 2.1 and I can’t find auth library. Does it deprecated? If yes what else I can use?

Thanks

 
Posted: 12 November 2012 11:30 AM   [ # 1 ]   [ Rating: 0 ]
Joined: 2011-02-23
882 posts

There is no built-in auth library neither for 1.7 nor for 2.x. You need to have a look here:
http://stackoverflow.com/questions/346980/how-should-i-choose-an-authentication-library-for-codeigniter

 Signature 

ignited Community Framework (WiP)  |  Read the User’s Guide. It won’t bite.

STOP! Before posting your questions, remember the WWW Golden rule:
What did you try? What did you get? What did you expect to get?

CI example .htaccess

 
Posted: 12 November 2012 11:32 AM   [ # 2 ]   [ Rating: 0 ]
Joined: 2011-03-17
28 posts

I had installed CI 1.7 with

| Code Igniter User Authentication Class
|
| By Chris Monnat

No clue if it was there by default or not.

 
Posted: 12 November 2012 11:37 AM   [ # 3 ]   [ Rating: 0 ]
Joined: 2011-02-23
882 posts

It surely wasn’t included in the default installation of CI since CI ain’t no CMS or alike but a framework for helping developing apps. However I’m surprised that you lost this authentication module when upgrading because - I guess - you just overrode the system files and replaced names with the same filename but did not delete any files ?!

 Signature 

ignited Community Framework (WiP)  |  Read the User’s Guide. It won’t bite.

STOP! Before posting your questions, remember the WWW Golden rule:
What did you try? What did you get? What did you expect to get?

CI example .htaccess

 
Posted: 12 November 2012 11:39 AM   [ # 4 ]   [ Rating: 0 ]
Joined: 2011-03-17
28 posts

I have a backup of it. Will try if it works with CI 2.x

 
Posted: 12 November 2012 12:20 PM   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2011-08-08
536 posts

You have 4 options,

tank_auth
ion_auth
community_auth
create_your_own from scratch.

I prefer the latter.

 Signature 

Stick with it, practice it and have fun with it.

 
Posted: 12 November 2012 12:26 PM   [ # 6 ]   [ Rating: 0 ]
Joined: 2011-03-17
28 posts
solid9 - 12 November 2012 12:20 PM

You have 4 options,

tank_auth
ion_auth
community_auth
create_your_own from scratch.

I prefer the latter.

I will go with ‘create_your_own from scratch’ because I have already created user and permissions management. Tank_auth and ion_auth looks pretty robust but is too late. Good to know for future reference smile

Thanks