5 Comments

gaga66
Hello,everybody,the good shopping place,the new season approaching, click in. Let's facelift bar! ====== http://www.clothes6.org ======= Air jordan(1-24)shoes $33 UGG BOOT $50 Nike shox(R4,NZ,OZ,TL1,TL2,TL3) $33 Handbags(Coach lv fendi d&g) $33 Tshirts (Polo ,ed hardy,lacoste) $16 Jean(True Religion,ed hardy,coogi) $30 Sunglasses(Oakey,coach,gucci,Armaini) $12 New era cap $9 Bikini (Ed hardy,polo) $18 FREE SHIPPING ========= http://www.clothes6.org ==========
sams
so I changed the beforefilter of users controller to if($this->action == 'add' || $this->action == 'edit') { if(Configure::read('isLoggedIn') && $this->action == 'edit') { $this->Auth->authenticate = $this->User; } } I write the user vars etc in the beforefilter of app controller additionally if the user is unable to resiger (a guest adding themselves as a user) I set the password fields to blank (user controller add if the save does not work) if($this->validateErrors($this->User)) { //die('we get here'); $this->data['User']['password'] = ''; $this->data['User']['password_confirmation'] = ''; }