CodeIgniter Forums
Too much code in Login library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Too much code in Login library (/thread-55439.html)



Too much code in Login library - El Forum - 10-26-2012

[eluser]Unknown[/eluser]
Why these functions are inside of some login libraries?

signin
register
logout
createrandompassword
activate
sendforgotmail
sendactivationmail

I'm newbie with Codeigniter, but with the tutorials, forums and posts that I've read I still don't know why this functions are there.

I'm loading my login library in MY_Controller. And in my library I have isLoggedIn, get_user_id y get_username.

I don't know why I need the register, logout and others functions there, and not in my autentication controller, where i have the register function, singin, logout etc...

Thanks.