Hello!
Today, something about a half year and some free time later, i tracked
down the problem.
Providing a login-form, you set the action parameter of the form with the
full url, ignoring any path_info. If you use CGI::Application::Dispatch,
you use PATH_INFO to determine the Module and the runmode you wish to
execute. So, if you want to add support for CA::Dispatch, you should alter
your code like this:
sub login_box {
my $self = shift;
my $query = $self->_cgiapp->query;
my $credentials = $self->credentials;
my $runmode = $self->_cgiapp->get_current_runmode;
my $destination = $query->param('destination') || $query->self_url;
my $action = $query->url( -absolute => 1, -path_info => 1, ); #
<<<<<<< here is the difference! -path_info was added
[...]
HTH, A. Becker
Am 21.02.2007, 23:28 Uhr, schrieb Cees Hek <suppressed>:
On 2/19/07, Alexander Becker <suppressed> wrote:I tried to subclass one of my apps and use the CAP::Authentication in oneof the subclasses.That doesn't work. Each time i try to authenticate for one of the subclassrunmodes, i don't get in. The authentication don't seem fail, as no error message appears (as it does if you enter invalid usn/pwd). The form simply pops up again. The subclass authenticates as usual.Can you clarify the problem a little bit more? You mention that the subclass is having problems, but then finish with 'The subclass authenticates as usual'? Which one is having the problem?package My::MyAppSuperclass::MyAppSubclass; use strict; use warnings; use base qw/CGI::Application/;Shouldn't the subclass inherit from your super class? ie use base qw/My::MyAppSuperclass/; I don't think that alone will fix your problem, but I'd need you to clarify these things before I can figure out what is going wrong here. Cheers, Cees
--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.