Newsflash

 Politics of hate, submit and bad mother. In contrast to her former husband, father of the family sample. And what is the truth about the model's Jordan? Certainly more complicated than appearances. Katie Price is a person entering the extreme to extreme and full of contradictions. Model, which is appearing under the pseudonym Jordan has made millions for their beauty, says he wants love, not sex. This ruthless businesswoman who came to everything on his own, he confesses that he is hungry of love and warmth. It seems hard, but it is clearly only an illusion, what armor built to hide the fragile Katie, again and again wounded by life and people.
 
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
so weird Setting up Auth is breaking my Add and Edit functions on all controllers. (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: so weird Setting up Auth is breaking my Add and Edit functions on all controllers.
#12479
gparra (Visitor)
Click here to see the profile of this user
Birthdate:
so weird Setting up Auth is breaking my Add and Edit functions on all controllers.  
Hi. I'm not sure what the problem is, I setup Auth in the app_controller, and now every time (after logging in) i try to add or edit, I'm sent directly back to the index with a message (flash) that says The (Controller) has been saved without letting me enter any fields. Am I missing adding some auth code to the views? Do I need to add the parent::beforeFilter(); to every controller even if they don't have a beforeFilter() function defined? Here's what I added to the app_controller: <?php class AppController extends Controller {     var $components = array('Auth');     function beforeFilter() {         Security:etHash('md5');     // this is part of cake that serves up static pages, it should be authorized by default         $this-Auth-allow('display');         // tell cake to look on the user model itself for the password hashing function         $this-Auth-authenticate = ClassRegistry::init('User');         // tell cake where our credentials are on the User entity         $this-Auth-fields = array(             'username' = 'name',             'password' = 'pass',         );         // this is where we want to go after a login... we'll want to make this dynamic at some point         $this-Auth-loginRedirect = array('controller'='partners', 'action'='index');     } } ? This is what I added to one of my controllers: (every other controller was fully working without auth before with add, edit, view, index and del.         function beforeFilter(){             $this-Auth-allow('add','index');             parent::beforeFilter();         } Any ideas are welcome. Thank you! Germán.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#12480
Miles J (Visitor)
Click here to see the profile of this user
Birthdate:
so weird Setting up Auth is breaking my Add and Edit functions on all controllers.  
So do you have your own hashing method for $this-Auth-authenticate? Also your problem is, is that parent::beforeFilter() must be run first.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#12481
gparra (Visitor)
Click here to see the profile of this user
Birthdate:
so weird Setting up Auth is breaking my Add and Edit functions on all controllers.  
Also your problem is, is that parent::beforeFilter() must be run first.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#12482
Miles J (Visitor)
Click here to see the profile of this user
Birthdate:
so weird Setting up Auth is breaking my Add and Edit functions on all controllers.  
You don't need your own hashing method if you put: Security:etHash ('md5'); That does the same thing as your custom method. What happens when you do allow('*');
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#12483
gparra (Visitor)
Click here to see the profile of this user
Birthdate:
so weird Setting up Auth is breaking my Add and Edit functions on all controllers.  
('md5'); That does the same thing as your custom method. What happens when you do allow('*');
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#12484
gparra (Visitor)
Click here to see the profile of this user
Birthdate:
so weird Setting up Auth is breaking my Add and Edit functions on all controllers.  
('md5'); That does the same thing as your custom method. What happens when you do allow('*');
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Who's Online

We have 47 guests online

Fred Dust - divorced after 2 month of marriage

And it all could be so beautifu... ferienwohnung gdansk used cars site.auto-moto-blog.co.uk lA little over two months ago, lucky singer Limp Bizkit, Fred Durst, announced to the world on a blog that he married his girlfriend, Esther Nazarov. Relationship had to be perfect, couple well-chosen and proven over the years. Unfortunately, only a few weeks after the intimate ceremony in Las Vegas Durst once wrote in an online diary: I would like to marchesa used cars great reviews inform all concerned that Esther and I decided that it was time to go separate ways in life. Thank you to everyone who supported us. I am grateful for the support and warm words. Very. I can also say that they both hold up well and parting culturally, in a positive atmosphere.

Pamela Anderson: I'm not a bancrupt!

A few days ago we wrote faucet erotic kate moss about the debt, which has caused the Pamela Anderson, as every year, changing the decor of his house. The owner of the famous zgranulowanych breast wished costly and sophisticated alterations, and when the contractor sent its bill Ceased to answer calls. Currently, debt is more than 1.2 million dollars, but Pam Mehrgenerationenhaus reviews.deluxe-car.co.uk designer shoes insists that ... There are no debts. I am completely financially stable, and I thank all those who contested the recent media reports - wrote in a statement issued yesterday Anderson. It is true that I am still in the course of discussions with some of the subcontractors working on my house. But that's because after paying millions of dollars for its construction still get a wrong call for payment of accounts. My lawyers check out how the work villas to buy Xenon Kiteboards Body Detox has been done and whether professionals actually have the right to require such enormous sums. Where appropriate, it will pay, if not - it does not. I am only sorry that one of the performers went with the whole affair to the press.