in reply to CGI::Application redirecting from one handler to another.

I feel that this task is one that should not be seperated into two "handlers". You can always take care of abstraction by writing two "utility" methods/functions that verify and create respectively, but the task of "logging in" is better handled in one handler, IMHO.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)
  • Comment on Re: CGI::Application redirecting from one handler to another.

Replies are listed 'Best First'.
Re: Re: CGI::Application redirecting from one handler to another.
by skx (Parson) on Jan 02, 2004 at 17:49 UTC

    This code is related to the creation of accounts rather than logging in - obviously a user cannot login until their account has been created!

    Still I think that perhaps you're correct and that instead of having two handlers I should just keep one long one. It just seemed right to make it a two step affair as conceptually it is.

    I guess that's just an implementation detail though and it would solve my problems.

    Steve
    ---
    steve.org.uk