On Tue, Oct 12, 2010 at 7:39 PM, Jose <[email protected]> wrote: > Hello, > > I define > auth.settings.controller = 'admin' > > but login fucntion is wanted in the default controller. > > However, if I: > > auth.settings.login_url = URL('admin', 'user', args='login') > > this works fine, but implies that I configure auth.settings.login_url, > auth.settings.logout_url, etc. > > Jose >
I don't remember the exact cause, but yes, you have to define urls (and remember next= in the controller): http://code.google.com/r/reingart-web2conf/source/browse/models/db.py IIRC there is some hardwired default logic in auth that has to be overriden completly. Indeed, I had to catch some rare exceptions when something fails (like url isn't set correctly), see verify (the workaround is not very clean, I have to look deeper on this...): http://code.google.com/r/reingart-web2conf/source/browse/controllers/user.py?r=fb220575448cfae51b2d29b9640048b5f0950119 Best regards, Mariano Reingart http://www.sistemasagiles.com.ar http://reingart.blogspot.com

