(SOLVED)Need Login Help using Erkanaauth |
[eluser]zimco[/eluser]
I'm trying to create the most basic login area for my application: one admin user and password stored in a mysql table. I tried following the tutorial by Alex Biddle that uses Erkanaauth but i've mucked it all up and can't get it to work. Can someone tell me what i am doing wrong and how to fix it? File locations: application/libraries/Erkanaauth.php application/helpers/erkanaauth_helper.php application/controllers/admin/authcontroller.php application/controllers/admin/login.php application/views/admin/content-login.php The mysql table was created with the following command: CREATE TABLE `users` ( `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, `username` varchar(10) NOT NULL, `password` varchar(10) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`) ); The admin user was inserted into the database with INSERT INTO users (username, password) VALUES ("admin", sha1("demo")); Here's the code for my login.php controller: Code: <?php Here's the code for my login view, content-login.php: Code: <div id="content"> |
Messages In This Thread |
(SOLVED)Need Login Help using Erkanaauth - by El Forum - 06-27-2008, 07:29 AM
(SOLVED)Need Login Help using Erkanaauth - by El Forum - 06-27-2008, 12:25 PM
(SOLVED)Need Login Help using Erkanaauth - by El Forum - 06-27-2008, 12:51 PM
(SOLVED)Need Login Help using Erkanaauth - by El Forum - 06-27-2008, 02:03 PM
(SOLVED)Need Login Help using Erkanaauth - by El Forum - 06-27-2008, 02:49 PM
(SOLVED)Need Login Help using Erkanaauth - by El Forum - 06-28-2008, 06:19 AM
(SOLVED)Need Login Help using Erkanaauth - by El Forum - 06-28-2008, 09:35 AM
(SOLVED)Need Login Help using Erkanaauth - by El Forum - 06-29-2008, 03:38 PM
(SOLVED)Need Login Help using Erkanaauth - by El Forum - 06-29-2008, 04:17 PM
|