File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 198
198
$ logging_in = false ;
199
199
200
200
/* MAIN CODE */
201
- if (array_key_exists ('forceCASAuthentication ' , $ _REQUEST )) {
201
+ if (array_key_exists ('forceCASAuthentication ' , $ _POST )) {
202
202
unset($ _SESSION ['_user ' ]);
203
203
unset($ _user );
204
204
if (api_is_anonymous ()) {
283
283
if (
284
284
is_array ($ cas ) && array_key_exists ('force_redirect ' , $ cas ) && $ cas ['force_redirect ' ]
285
285
||
286
- array_key_exists ('forceCASAuthentication ' , $ _REQUEST )
286
+ array_key_exists ('forceCASAuthentication ' , $ _POST )
287
+ ||
288
+ array_key_exists ('checkLoginCas ' , $ _GET )
287
289
||
288
290
array_key_exists ('ticket ' , $ _GET )
289
291
) {
290
292
phpCAS::forceAuthentication ();
291
293
}
292
-
293
294
// check whether we are authenticated
294
295
if (phpCAS::isAuthenticated ()) {
295
296
// the user was successfully authenticated by the CAS server, read its CAS user identification
You can’t perform that action at this time.
0 commit comments