From 4039c82a3dee9c57e328c9dc369365b43ca39046 Mon Sep 17 00:00:00 2001
From: Florian Schaal <florian@schaal-24.de>
Date: Mon, 29 Jun 2015 03:52:37 -0400
Subject: [PATCH] made email mandatory for client and reseller
---
interface/web/client/form/client.tform.php | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/interface/web/client/form/client.tform.php b/interface/web/client/form/client.tform.php
index ef8ce33..35d7d09 100644
--- a/interface/web/client/form/client.tform.php
+++ b/interface/web/client/form/client.tform.php
@@ -328,9 +328,12 @@
2 => array( 'event' => 'SAVE',
'type' => 'TOLOWER')
),
- 'validators' => array ( 0 => array ( 'type' => 'REGEX',
+ 'validators' => array (
+ 0 => array ( 'type' => 'REGEX',
'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i',
'errmsg'=> 'email_error_isemail'),
+ 1 => array ( 'type' => 'NOTEMPTY',
+ 'errmsg'=> 'email_error_empty'),
),
'default' => '',
'value' => '',
--
Gitblit v1.9.1