fix tests for www_auth. fix deprecate for callers

This commit is contained in:
Doug Bell 2010-11-03 19:42:20 -05:00
parent 5a2d4d8d03
commit f515d85b2d
5 changed files with 32 additions and 17 deletions

View file

@ -73,7 +73,7 @@ sub www_auth {
my $auth;
($auth) = $session->db->quickArray("select authMethod from users where username=".$session->db->quote($session->form->process("username"))) if($session->form->process("username"));
my $authMethod = getInstance($session,$auth);
my $methodCall = shift || $session->form->process("method") || "init";
my $methodCall = shift || $session->form->process("method") || "view";
if(!$authMethod->isCallable($methodCall)){
$session->log->security("access uncallable auth method: $methodCall");
my $i18n = WebGUI::International->new($session);