CodeIgniter Forums

Full Version: Codeigniter User Auth Library
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Waldir Bertazzi Junior[/eluser]
Codeigniter user auth library v. 1.1

Today I updated the library and added some nice features. I think it's a pretty straight-forward, easy to use, yet powerful auth library for your sites.

Features includes adding users, removing users, protecting controllers and methods from not logged viewers and much more.

You can check it out on github!
https://github.com/waldirbertazzijr/codeigniter-user


Best regards,
Waldir

El Forum

[eluser]Unknown[/eluser]
Hi,

This looks interested, but when calling either

$this->user->get_name();
$this->user->get_id();

It complains with

Message: Trying to get property of non-object
Filename: libraries/User.php
Line Number: 170

When profiling it, the session data shows;

user_data
login admin
pw admin
logged 1