diff --git a/account.php b/account.php index 7b8c7fa28ad5cda25a074de8b16844ca41217cca..66de95ecae8e048b0291b248b7c109fdf38daa9b 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'])