--- loncom/auth/checkauthen.pm 2015/09/18 11:43:05 1.18 +++ loncom/auth/checkauthen.pm 2018/11/25 02:49:26 1.20 @@ -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.20 2018/11/25 02:49:26 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,7 @@ 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->uri =~ m{^/tiny/[\w\-.]+/\w+$}))) { $env{'form.firsturl'} = $r->uri; } return $fail;