Subversion Repositories oidplus

Rev

Rev 1143 | Rev 1206 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1143 Rev 1201
Line 42... Line 42...
42
 
42
 
43
                        _CheckParamExists($params, 'user');
43
                        _CheckParamExists($params, 'user');
44
                        $ra_email = $params['user'];
44
                        $ra_email = $params['user'];
45
 
45
 
46
                        if (!OIDplus::authUtils()->isRaLoggedIn($ra_email) && !OIDplus::authUtils()->isAdminLoggedIn()) {
46
                        if (!OIDplus::authUtils()->isRaLoggedIn($ra_email) && !OIDplus::authUtils()->isAdminLoggedIn()) {
47
                                throw new OIDplusException(_L('You need to <a %1>log in</a> as the requested RA %2 or as admin.',OIDplus::gui()->link('oidplus:login$ra$'.$ra_email),'<b>'.htmlentities($ra_email).'</b>'));
47
                                throw new OIDplusHtmlException(_L('You need to <a %1>log in</a> as the requested RA %2 or as admin.',OIDplus::gui()->link('oidplus:login$ra$'.$ra_email),'<b>'.htmlentities($ra_email).'</b>'));
48
                        }
48
                        }
49
 
49
 
50
                        $gen = OIDplusAuthContentStoreJWT::JWT_GENERATOR_AJAX;
50
                        $gen = OIDplusAuthContentStoreJWT::JWT_GENERATOR_AJAX;
51
                        $sub = $ra_email;
51
                        $sub = $ra_email;
52
 
52