Diff for /loncom/auth/lonauth.pm between versions 1.21 and 1.25

version 1.21, 2001/07/28 15:57:48 version 1.25, 2001/10/05 05:21:56
Line 6 Line 6
 # 7/1,7/10,10/2,10/5,10/9,10/26,10/30,11/10,  # 7/1,7/10,10/2,10/5,10/9,10/26,10/30,11/10,
 # 05/28,05/29 Gerd Kortemeyer  # 05/28,05/29 Gerd Kortemeyer
 # 07/24 Scott Harrison  # 07/24 Scott Harrison
 # 07/28 Gerd Kortemeyer  # 07/28,08/03 Gerd Kortemeyer
   # 8/15 Scott Harrison
   # 8/20 Gerd Kortemeyer
   
 package Apache::lonauth;  package Apache::lonauth;
   
Line 124  sub success { Line 126  sub success {
   
     my @what=&Apache::lonnet::dump('critical',$domain,$username);      my @what=&Apache::lonnet::dump('critical',$domain,$username);
     if ($what[0]) {      if ($what[0]) {
  if ($what[0] ne 'con_lost') {   if (($what[0] ne 'con_lost') && ($what[0]!~/^error\:/)) {
     $lowerurl='/adm/email?critical=display';      $lowerurl='/adm/email?critical=display';
         }          }
     }      }
Line 172  function wait() { Line 174  function wait() {
 }  }
   
 function main() {  function main() {
    canceltim=setTimeout('tim=1;',20000);     canceltim=setTimeout('tim=1;',80000);
    checkdef();     checkdef();
    wait();     wait();
 }  }
Line 257  sub handler { Line 259  sub handler {
   
     my $keybin=pack("H16",$key);      my $keybin=pack("H16",$key);
   
     my $cipher=new DES $keybin;      my $cipher=new Crypt::DES $keybin;
   
     my $upass=$cipher->decrypt(      my $upass=$cipher->decrypt(
        unpack("a8",pack("H16",substr($FORM{'upass'},0,16))));         unpack("a8",pack("H16",substr($FORM{'upass'},0,16))));
Line 280  sub handler { Line 282  sub handler {
     }      }
   
     if (($firsturl eq '') || ($firsturl eq '/adm/logout')) {      if (($firsturl eq '') || ($firsturl eq '/adm/logout')) {
  $firsturl='/res/adm/pages/index.html';   $firsturl='/adm/roles';
     }      }
   
     success($r,$FORM{'uname'},$FORM{'udom'},$authhost,$firsturl);      success($r,$FORM{'uname'},$FORM{'udom'},$authhost,$firsturl);

Removed from v.1.21  
changed lines
  Added in v.1.25


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>