survey access link with plugin CAS
When you activate CAS auth for chamilo, the direct access link survey for non-logged users doesn't work correctly.
For example, when a user receives a link by email offering to respond to a survey, it can be clicked and then it's correctly redirected to the survey, but it can't close it because in fact at every step no datas are posted.
I think the CAS plugin is involved and each page posted ("next question" button for example) is first redirected to CAS. So posted datas are lost !
[a fresh local install with no CAS auth hasn't this problem]
Updated by Hubert Borderiou over 5 years ago
I've found the instruction that causes the problem.
It is in file main/auth/cas/lib/CAS/client.php
on function checkAuthentication()
line 892 unset($_SESSION['phpCAS']['auth_checked']);
(// the previous request has redirected the client to the CAS server with gateway=true)
If I comment this line it works fine, the page has the html code 302 Moved temporarely, and the survey is stored in the bdd.
I've tested my CAS with this line commented, and everything is fine for me.
Can you test it please, if it is ok for you, I guess we should comment this line... not proud of it...