From bf05636554221e0bea6939ee1458b54265c6b0f6 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Thu, 27 Mar 2014 16:16:10 -0500
Subject: [PATCH] oops: Permit registration from ticket access link

---
 account.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/account.php b/account.php
index 7b8c7fa28..66de95eca 100644
--- a/account.php
+++ b/account.php
@@ -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'])
-- 
GitLab