--- loncom/auth/checkauthen.pm 2015/09/18 11:43:05 1.18 +++ loncom/auth/checkauthen.pm 2018/12/24 14:29:48 1.21 @@ -1,7 +1,7 @@ # The LearningOnline Network # checks for a cookie to authenticate a user # -# $Id: checkauthen.pm,v 1.18 2015/09/18 11:43:05 raeburn Exp $ +# $Id: checkauthen.pm,v 1.21 2018/12/24 14:29:48 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -50,13 +50,6 @@ sub handler { return OK; } - if ($r->uri() =~ m{^/res/adm/pages/reactionresponse/[^/]+\.html$}) { - if ($r->user() eq '') { - $r->user('public:public'); - } - return OK; - } - if ($r->auth_type() ne 'LONCAPA') { return DECLINED; } @@ -106,7 +99,8 @@ sub handler { } if (($fail == FORBIDDEN) && (($r->uri eq '/adm/email') || ($r->uri eq '/adm/preferences') || - ($r->uri eq '/adm/requestcourse'))) { + ($r->uri eq '/adm/requestcourse') || + (($r->is_initial_req()) && ($r->uri =~ m{^/tiny/[\w\-.]+/\w+$})))) { $env{'form.firsturl'} = $r->uri; } return $fail;