php - cakephp error 512 invalid salt for blowfish -
Using some code from the tutorial to create a blog, I managed to add users ... The problem is that I try to log in and fatal 512 error pop up any idea if this is coming from my core.php file or what happened with my code?
Here's the case when you are thinking
See:
Form- & gt; Input ('account_type', array ('option' = & gt; array ('admin', 'user'), 'empty' = & gt; '(choose one)'? & Gt; & lt; / field & gt; ; & Lt ;? php echo $ this- & gt; form-> end (__ ('submit'));? & Gt; & lt; / div & gt; & lt; div class = "verb" & Gt; & lt; h3 & gt; & lt ;? Php Echo __ ('Action');? & Gt; & lt; / h3 & gt; & lt; ul & gt; & lt; LE & gt; Lt ;? php echo $ this- & gt; HTML- & gt; link (__ ('list users
model ARE (' action '=' gt; 'index' :
Pre> first sir Save the generic function ($ options = array ()) {if (isset ($ this-> data [$ this- & gt; nickname] ['password'])) {$ passwordHasher = new bluffy password; $ [- 'password'] = $ passwordHasher- & gt; data [$ this- & gt; nickname] ['password-' ]);} Back to right;}}
and the functional functions I nvolved with login and logout function
before public filter () -father: beforeFilter (); // Allow users to register and log out $ This- & gt; Auth-> Allow ('add', 'logout'); } Public Function Login () (if ($ this- & gt; Request- & gt; ('Post')) {if (& gt; Auth-> Login ()) {Refund $ the- & Gt; $ this- & gt; Auth- & gt; redirect ()); } $ This- & gt; Session-> Set flash (__ ('invalid user name or password, try again')); }} Public Function Logout () {Return $ this- & gt; Redirect ($ this-> AUTH- & gt; logout ()); }}
Comments
Post a Comment