--- loncom/build/weblayer_test/test_login.pl 2002/03/04 06:46:17 1.1 +++ loncom/build/weblayer_test/test_login.pl 2003/06/30 17:35:13 1.4 @@ -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.4 2003/06/30 17:35:13 albertel 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 # ### @@ -116,23 +115,23 @@ unless ($response->is_success) { my $content=$response->content; my $logtoken; -if ($content=~/logtoken value=\"([^\"]*)\"/) { +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; -if ($content=~/name\=serverid value\=\"([^\"]+)\"/) { +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