![]() |
Not able to login using codeigniter sample login_form. - 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: Not able to login using codeigniter sample login_form. (/showthread.php?tid=58993) |
Not able to login using codeigniter sample login_form. - El Forum - 08-12-2013 [eluser]uday_3393[/eluser] I am using sample codeigniter tutorial. I am able to register the customer but when I am trying to log using login form.. its giving following error even I type correct login details. Login Error: Invalid Username, Email Address, or Password. Username, email address and password are all case sensitive. I enabled the Debug logging which shows following debug log. please help to identify the isssue. DEBUG - 2013-08-12 09:37:22 --> string = user23451 password = User2345 form_token = 05bfb5c099df43a661d6cd94c0ffda38 flash_token = 05bfb5c099df43a661d6cd94c0ffda38 DEBUG - 2013-08-12 09:37:22 --> Form Validation Class Initialized DEBUG - 2013-08-12 09:37:22 --> Config file loaded: application/config/form_validation/auth/login.php DEBUG - 2013-08-12 09:37:22 --> Language file loaded: language/english/form_validation_lang.php DEBUG - 2013-08-12 09:37:22 --> XSS Filtering completed DEBUG - 2013-08-12 09:37:22 --> Model Class Initialized DEBUG - 2013-08-12 09:37:22 --> user is banned = no password in database = $2a$09$9f7cbda22c38e149ca44cunFmJ9bbtXVMDKZDztzuaQKsdlLULSpi posted/hashed password = $2a$09$9f7cbda2$$$$$$$$$$$$$.Dfkl4E6du3HCdnOYYsv7ii43TZp.GMe required level or role = 1 user level in database = 1 user level equivalant role = customer DEBUG - 2013-08-12 09:37:22 --> XSS Filtering completed DEBUG - 2013-08-12 09:37:22 --> File loaded: application/views/dynamic_js/cookie_checker.php DEBUG - 2013-08-12 09:37:22 --> Session class already loaded. Second attempt ignored. DEBUG - 2013-08-12 09:37:22 --> File loaded: application/views/auth/login_form.php DEBUG - 2013-08-12 09:37:22 --> File loaded: application/views/templates/main_template.php DEBUG - 2013-08-12 09:37:22 --> Final output sent to browser DEBUG - 2013-08-12 09:37:22 --> Total execution time: 0.3290 Not able to login using codeigniter sample login_form. - El Forum - 08-25-2013 [eluser]uday_3393[/eluser] Please help as I am not getting redirected to main_template... Not able to login using codeigniter sample login_form. - El Forum - 08-25-2013 [eluser]InsiteFX[/eluser] It's hard to tell what is going on with out seeing some code or knowing what tutorial you are using. It looks like he passwords are getting messed up. Not able to login using codeigniter sample login_form. - El Forum - 08-25-2013 [eluser]uday_3393[/eluser] Thanks for the reply. I am using standard codeigniter login and registration form which given in tutorial (skunkbad-community). Registration form is working properly but when I try to login it give error like Login Error: Invalid Username, Email Address, or Password. Username, email address and password are all case sensitive. In log its printing DEBUG - 2013-08-25 21:25:48 --> Config Class Initialized DEBUG - 2013-08-25 21:25:48 --> Hooks Class Initialized DEBUG - 2013-08-25 21:25:48 --> Utf8 Class Initialized DEBUG - 2013-08-25 21:25:48 --> UTF-8 Support Enabled DEBUG - 2013-08-25 21:25:48 --> URI Class Initialized DEBUG - 2013-08-25 21:25:48 --> Router Class Initialized DEBUG - 2013-08-25 21:25:48 --> No URI present. Default controller set. DEBUG - 2013-08-25 21:25:48 --> Output Class Initialized DEBUG - 2013-08-25 21:25:48 --> Security Class Initialized DEBUG - 2013-08-25 21:25:48 --> Input Class Initialized DEBUG - 2013-08-25 21:25:48 --> Global POST and COOKIE data sanitized DEBUG - 2013-08-25 21:25:48 --> Language Class Initialized DEBUG - 2013-08-25 21:25:48 --> Loader Class Initialized DEBUG - 2013-08-25 21:25:48 --> Config file loaded: application/config/db_tables.php DEBUG - 2013-08-25 21:25:48 --> Config file loaded: application/config/authentication.php DEBUG - 2013-08-25 21:25:48 --> Config file loaded: application/config/google_analytics.php DEBUG - 2013-08-25 21:25:48 --> Helper loaded: html_helper DEBUG - 2013-08-25 21:25:48 --> Helper loaded: url_helper DEBUG - 2013-08-25 21:25:48 --> Helper loaded: form_helper DEBUG - 2013-08-25 21:25:48 --> Helper loaded: cookie_helper DEBUG - 2013-08-25 21:25:48 --> Database Driver Class Initialized DEBUG - 2013-08-25 21:25:48 --> Session Class Initialized DEBUG - 2013-08-25 21:25:48 --> Helper loaded: string_helper DEBUG - 2013-08-25 21:25:48 --> Encrypt Class Initialized DEBUG - 2013-08-25 21:25:48 --> Session routines successfully run DEBUG - 2013-08-25 21:25:48 --> Model Class Initialized DEBUG - 2013-08-25 21:25:48 --> Model Class Initialized DEBUG - 2013-08-25 21:25:48 --> Controller Class Initialized DEBUG - 2013-08-25 21:25:48 --> string = uday3393 password = Uday3393 form_token = e32927ecabe342b2b7e5b705b7faf0cf flash_token = e32927ecabe342b2b7e5b705b7faf0cf DEBUG - 2013-08-25 21:25:48 --> Form Validation Class Initialized DEBUG - 2013-08-25 21:25:48 --> Config file loaded: application/config/form_validation/auth/login.php DEBUG - 2013-08-25 21:25:48 --> Language file loaded: language/english/form_validation_lang.php DEBUG - 2013-08-25 21:25:48 --> XSS Filtering completed DEBUG - 2013-08-25 21:25:48 --> user is banned = no password in database = $2a$09$78f3529abe5dd02d497aaObzhreGGScSrYjmsnwjRKpW/7Fao7QS2 posted/hashed password = $2a$09$78f3529a$$$$$$$$$$$$$.XezSe9XYUEFE4Yij3ABuO6JNgSREkmy required level or role = 1 user level in database = 1 user level equivalant role = customer DEBUG - 2013-08-25 21:25:48 --> XSS Filtering completed DEBUG - 2013-08-25 21:25:48 --> File loaded: application/views/dynamic_js/cookie_checker.php DEBUG - 2013-08-25 21:25:48 --> Session class already loaded. Second attempt ignored. DEBUG - 2013-08-25 21:25:48 --> File loaded: application/views/auth/login_form.php DEBUG - 2013-08-25 21:25:48 --> File loaded: application/views/templates/main_template.php DEBUG - 2013-08-25 21:25:48 --> Final output sent to browser DEBUG - 2013-08-25 21:25:48 --> Total execution time: 0.2390 Regards, Uday Not able to login using codeigniter sample login_form. - El Forum - 08-27-2013 [eluser]uday_3393[/eluser] Thanks, InsiteFX. Yes problem was with password. it got corrected now I am facing another issue. when I logged in as user it goes to user index page. but when I logged in as admin it still going to user index page not admin or main_template. Regards, Uday |