authentication - cakephp - can not get User->login() method to run through it's code -


hi have followed through cake users guide , followed auth tutorial. have had trouble login method. seems method getting called when not log in. whenever able log in of session variables set in user controller's login method not display in redirected view. can't seem narrow down.

i think should mentioned in cake tutorial (or maybe somehow missed it,) function of user -> login() method gets skipped on auth component , never executed. seems in order execute login code have add before filter of app controller:

$this->auth->autoredirect = false; 

then can manually log in through login() method so:

$this->session->read('auth.user') 

hope helps :)


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -