User Login Page? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: User Login Page? (/showthread.php?tid=10345) Pages:
1
2
|
User Login Page? - El Forum - 07-29-2008 [eluser]Bramme[/eluser] Great! You can proof read it :p If you think things are missing, unclear or if your interested in additional things, please let me know! User Login Page? - El Forum - 07-29-2008 [eluser]ywftdg[/eluser] Bramme, worked like a charm! Learned some good stuff along the way too! Thanks again, and again for posting that. One thing I did notice, was when I clicked the link to 'view plain' on the code, in Safari (mac) it opens squished to one line. Works fine in FireFox 3 on (mac) though. Other than that, all looks good to me! User Login Page? - El Forum - 07-30-2008 [eluser]Bramme[/eluser] That's the JavaScript I'm afraid... It's the first time I used it but it's good to know the bug's there. Though I don't really care :p People reading it will probably have got Firefox ^^ User Login Page? - El Forum - 07-30-2008 [eluser]ywftdg[/eluser] Curious on something in your auth library. I am trying to set the cookie to something else than the say user name, in my case username is the email. I want to use my user's id from the database instead for the cookie. I have been trying this, but its not working. Maybe I am just using the query variable wrong here, or maybe i'm missing something al together? Code: // Query time Update, was able to fix changing to grab the row via: Code: foreach ($query->result() as $row) { User Login Page? - El Forum - 07-30-2008 [eluser]Bramme[/eluser] Indeed, $query[0]would not have worked, seeing as it wasn't converted into a result (or row) yet. A better way would be (imo) Code: $row = $query->row(); User Login Page? - El Forum - 07-30-2008 [eluser]ywftdg[/eluser] indeed better, thanks. User Login Page? - El Forum - 09-24-2008 [eluser]Randy Casburn[/eluser] Please consider this post: Authentication (ACL) - Challenges - Solutions - Dilemmas Thanks, Randy |