[LON-CAPA-cvs] cvs: loncom /auth lonauth.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 31 May 2006 15:33:39 -0000
albertel Wed May 31 11:33:39 2006 EDT
Modified files:
/loncom/auth lonauth.pm
Log:
- batter screen and internal error message for the case when server can't find itself
Index: loncom/auth/lonauth.pm
diff -u loncom/auth/lonauth.pm:1.76 loncom/auth/lonauth.pm:1.77
--- loncom/auth/lonauth.pm:1.76 Mon May 1 17:04:31 2006
+++ loncom/auth/lonauth.pm Wed May 31 11:33:39 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network
# User Authentication Module
#
-# $Id: lonauth.pm,v 1.76 2006/05/01 21:04:31 albertel Exp $
+# $Id: lonauth.pm,v 1.77 2006/05/31 15:33:39 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -367,9 +367,12 @@
failed($r,'Information needed to verify your login information is missing, inaccessible or expired.');
return OK;
} else {
- unless (&Apache::lonnet::reply('tmpdel:'.$FORM{'logtoken'},
- $FORM{'serverid'}) eq 'ok') {
+ my $reply = &Apache::lonnet::reply('tmpdel:'.$FORM{'logtoken'},
+ $FORM{'serverid'});
+ if ( $reply ne 'ok' ) {
&failed($r,'Session could not be opened.');
+ &Apache::lonnet::logthis("ERROR got a reply of $reply when trying to contact ". $FORM{'serverid'}." to get login token");
+ return OK;
}
}
my ($key,$firsturl)=split(/&/,$tmpinfo);