in reply to Modularizing CGI::Application
Because you are doing this,
$self->login
But you did not declare the login, logout methods in the App.pm module, you declared them in the Account.pm module.
The quick and dirty way to fix it is to say,
use base 'Account';
A better solution would be to use CGI::Application::Plugin::Authentication and the CGI::Application::Plugin::Session plugins to do authentication. It is a little more work to get it right, but it is a more robust once you do getting working
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Modularizing CGI::Application
by punkish (Priest) on Apr 28, 2007 at 16:51 UTC | |
by Herkum (Parson) on Apr 29, 2007 at 12:06 UTC |