--- loncom/auth/lonauth.pm 2006/04/20 04:30:02 1.75 +++ 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.75 2006/04/20 04:30:02 albertel Exp $ +# $Id: lonauth.pm,v 1.77 2006/05/31 15:33:39 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -208,7 +208,8 @@ sub success { my $setflags=&Apache::lonmenu::setflags(); my $maincall=&Apache::lonmenu::maincall(); my $start_page=&Apache::loncommon::start_page('Successful Login', - $startupremote); + $startupremote, + {'no_inline_link' => 1,}); my $end_page =&Apache::loncommon::end_page(); my $continuelink; @@ -246,7 +247,8 @@ ENDSUCCESS sub failed { my ($r,$message) = @_; - my $start_page = &Apache::loncommon::start_page('Unsuccessful Login'); + my $start_page = &Apache::loncommon::start_page('Unsuccessful Login',undef, + {'no_inline_link' => 1,}); my $end_page = &Apache::loncommon::end_page(); my %lt=('sorry' => &mt('Sorry ...'), @@ -365,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);