Skip to content
Snippets Groups Projects
Commit bf056365 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Permit registration from ticket access link

parent 205ae826
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,10 @@ if ($user && $_POST) {
elseif ($_POST) {
$user_form = UserForm::getUserForm()->getForm($_POST);
$user_form->getField('email')->configure('disabled', true);
if ($thisclient)
$user_form->getField('email')->value = $thisclient->getEmail();
if (!$user_form->isValid(function($f) { return !$f->get('internal'); }))
$errors['err'] = 'Incomplete client information';
elseif (!$_POST['backend'] && !$_POST['passwd1'])
......
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