Rev 1199 | Rev 1267 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1199 | Rev 1266 | ||
---|---|---|---|
Line 44... | Line 44... | ||
44 | $email = $params['email']; |
44 | $email = $params['email']; |
45 | 45 | ||
46 | $ra_logged_in = OIDplus::authUtils()->isRaLoggedIn($email); |
46 | $ra_logged_in = OIDplus::authUtils()->isRaLoggedIn($email); |
47 | 47 | ||
48 | if (!OIDplus::authUtils()->isAdminLoggedIn() && !$ra_logged_in) { |
48 | if (!OIDplus::authUtils()->isAdminLoggedIn() && !$ra_logged_in) { |
49 | throw new OIDplusException(_L('Authentication error. Please log in.')); |
49 | throw new OIDplusException(_L('Authentication error. Please log in.'), null, 401); |
50 | } |
50 | } |
51 | 51 | ||
52 | if ($ra_logged_in) OIDplus::authUtils()->raLogout($email); |
52 | if ($ra_logged_in) OIDplus::authUtils()->raLogout($email); |
53 | 53 | ||
54 | $ra = new OIDplusRA($email); |
54 | $ra = new OIDplusRA($email); |