Skip to content
Snippets Groups Projects
Commit 0b80f1fa authored by Elmar Ludwig's avatar Elmar Ludwig Committed by Jan-Hendrik Willms
Browse files

store terms_accepted in session to allow multi-step enrollment process, fixes #742

parent 99cc4607
No related branches found
No related tags found
No related merge requests found
...@@ -108,7 +108,10 @@ class TermsAdmission extends AdmissionRule ...@@ -108,7 +108,10 @@ class TermsAdmission extends AdmissionRule
$errors = []; $errors = [];
// check if the user has accepted the terms // check if the user has accepted the terms
if (!Request::int('terms_accepted')) { if (Request::int('terms_accepted')) {
$_SESSION['terms_accepted_' . $this->getId()] = true;
}
if (!$_SESSION['terms_accepted_' . $this->getId()]) {
$errors[] = _('Um sich anzumelden, müssen Sie die Teilnahmebedingungen akzeptieren.'); $errors[] = _('Um sich anzumelden, müssen Sie die Teilnahmebedingungen akzeptieren.');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment