[Catalyst] Re: Calling Controller Methods from inside begin or auto.

2009-09-30 Thread Aristotle Pagaltzis
* Bernhard Graf cataly...@augensalat.de [2009-09-29 15:45]: What is the recommended way to leave a chain - eg. to show a login form? detach? Yup. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/ ___ List: Catalyst@lists.scsys.co.uk

Re: [Catalyst] Re: Calling Controller Methods from inside begin or auto.

2009-09-30 Thread Bill Moseley
On Wed, Sep 30, 2009 at 5:23 AM, Derek Wueppelmann dwuep...@gmail.comwrote: On Tue, 2009-09-29 at 14:39 +0200, Aristotle Pagaltzis wrote: * monkey dwuep...@gmail.com [2009-09-29 14:35]: Is there another way to do the above without having to write the auth handling at the top of every

Re: [Catalyst] Re: Calling Controller Methods from inside begin or auto.

2009-09-30 Thread Bill Moseley
On Wed, Sep 30, 2009 at 7:30 AM, Derek Wueppelmann dwuep...@gmail.comwrote: I'm actually doing forwards to my login page right now. So that when a user logs in they can still see the page they were originally trying to view. I capture the URL they were attempting to view in the login process.

Re: [Catalyst] Re: Calling Controller Methods from inside begin or auto.

2009-09-30 Thread Bill Moseley
On Wed, Sep 30, 2009 at 10:13 AM, Aristotle Pagaltzis pagalt...@gmx.dewrote: I detach. My login action sets status 403 and pragma no-cache (etc) when it’s not requested directly. I’d love to be able to just send 401 instead and let the user agent take care of everything (which would

Re: [Catalyst] Re: Calling Controller Methods from inside begin or auto.

2009-09-29 Thread monkey
On Tue, 2009-09-29 at 14:39 +0200, Aristotle Pagaltzis wrote: * monkey dwuep...@gmail.com [2009-09-29 14:35]: Is there another way to do the above without having to write the auth handling at the top of every method used to display pages? Chained dispatch. Do an auth check early in the

Re: [Catalyst] Re: Calling Controller Methods from inside begin or auto.

2009-09-29 Thread Bernhard Graf
Aristotle Pagaltzis schrieb: * monkey dwuep...@gmail.com [2009-09-29 14:35]: Is there another way to do the above without having to write the auth handling at the top of every method used to display pages? Chained dispatch. Do an auth check early in the chain, then the actions down the