--- loncom/build/weblayer_test/test_login.pl 2002/03/04 06:46:17 1.1 +++ loncom/build/weblayer_test/test_login.pl 2003/02/03 18:03:52 1.3 @@ -4,14 +4,14 @@ =head1 NAME -test_login.pl - Attempt to login given a user name and password and assuming that /bin/hostname is the appropriate url. +B - Attempt to login given a user name and password and assuming that /bin/hostname is the appropriate url. =cut # The LearningOnline Network # test_login.pl - LON TCP-MySQL-Server Daemon for handling database requests. # -# $Id: test_login.pl,v 1.1 2002/03/04 06:46:17 harris41 Exp $ +# $Id: test_login.pl,v 1.3 2003/02/03 18:03:52 harris41 Exp $ # # This file is part of the LearningOnline Network with CAPA (LON-CAPA). # @@ -34,7 +34,6 @@ test_login.pl - Attempt to login given a # http://www.lon-capa.org/ # # YEAR=2002 -# 3/3 Scott Harrison # ### @@ -120,7 +119,7 @@ if ($content=~/logtoken value=\"([^\"]*) $logtoken=$1; } my $udom; -if ($content=~/value\=(\S+)\s+name\=udom/) { +if ($content=~/input type=\"text\" name=\"udom\".*value\=(\S+)/) { $udom=$1; } my $serverid; @@ -128,11 +127,11 @@ if ($content=~/name\=serverid value\=\"( $serverid=$1; } my $lextkey; -if ($content=~/name\=lextkey value\=\"([^\"]+)\"/) { +if ($content=~/name\=\"lextkey\" value\=\"([^\"]+)\"/) { $lextkey=$1; } my $uextkey; -if ($content=~/name\=uextkey value\=\"([^\"]+)\"/) { +if ($content=~/name\=\"uextkey\" value\=\"([^\"]+)\"/) { $uextkey=$1; } @@ -211,6 +210,5 @@ Crypt::DES =head1 AUTHOR -Scott Harrison, harris41@msu.edu =cut