--- loncom/auth/lonauth.pm 2006/05/01 21:04:31 1.76 +++ loncom/auth/lonauth.pm 2006/05/31 15:33:39 1.77 @@ -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 @@ ENDFAILED 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);