Skip to content
Snippets Groups Projects
Commit 739bc30f authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

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

parent b860ea4c
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.
Please register or to comment