summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-12-22 00:12:46 +0100
committermsquare <msquare@notrademark.de>2018-12-22 12:03:24 +0100
commitb1d8fede465950e5d1a0d6521a6d862a02e9ce36 (patch)
tree8233350acc1b4327516729b37e39baa414653810 /includes/pages
parent330356043df8e9c08fb3a408c74fe54bc2b9813d (diff)
user: allow up to 40 characters for dect numbers
closes #309 (EPVPN number in DECT field is shortened) closes #529 (For dect numbers are only 5 digits allowed)
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/admin_user.php2
-rw-r--r--includes/pages/guest_login.php4
-rw-r--r--includes/pages/user_settings.php4
3 files changed, 5 insertions, 5 deletions
diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php
index 63993fc9..4e0fd24b 100644
--- a/includes/pages/admin_user.php
+++ b/includes/pages/admin_user.php
@@ -55,7 +55,7 @@ function admin_user()
$html .= ' <tr><td>Name</td><td>' . '<input size="40" name="eName" value="' . $user_source->personalData->last_name . '" class="form-control"></td></tr>' . "\n";
$html .= ' <tr><td>Vorname</td><td>' . '<input size="40" name="eVorname" value="' . $user_source->personalData->first_name . '" class="form-control"></td></tr>' . "\n";
$html .= ' <tr><td>Handy</td><td>' . '<input type= "tel" size="40" name="eHandy" value="' . $user_source->contact->mobile . '" class="form-control"></td></tr>' . "\n";
- $html .= ' <tr><td>DECT</td><td>' . '<input size="4" name="eDECT" value="' . $user_source->contact->dect . '" class="form-control"></td></tr>' . "\n";
+ $html .= ' <tr><td>DECT</td><td>' . '<input size="40" name="eDECT" value="' . $user_source->contact->dect . '" class="form-control"></td></tr>' . "\n";
if ($user_source->settings->email_human) {
$html .= " <tr><td>email</td><td>" . '<input type="email" size="40" name="eemail" value="' . $user_source->email . '" class="form-control"></td></tr>' . "\n";
}
diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php
index 2df09d79..1b16333f 100644
--- a/includes/pages/guest_login.php
+++ b/includes/pages/guest_login.php
@@ -168,11 +168,11 @@ function guest_register()
$preName = strip_request_item('prename');
}
if ($request->has('dect')) {
- if (strlen(strip_request_item('dect')) <= 5) {
+ if (strlen(strip_request_item('dect')) <= 40) {
$dect = strip_request_item('dect');
} else {
$valid = false;
- error(__('For dect numbers are only 5 digits allowed.'));
+ error(__('For dect numbers are only 40 digits allowed.'));
}
}
if ($request->has('mobile')) {
diff --git a/includes/pages/user_settings.php b/includes/pages/user_settings.php
index c39c0ef7..9099f658 100644
--- a/includes/pages/user_settings.php
+++ b/includes/pages/user_settings.php
@@ -72,11 +72,11 @@ function user_settings_main($user_source, $enable_tshirt_size, $tshirt_sizes)
// Trivia
$user_source->personalData->last_name = strip_request_item('lastname', $user_source['Name']);
$user_source->personalData->first_name = strip_request_item('prename', $user_source['Vorname']);
- if (strlen(strip_request_item('dect')) <= 5) {
+ if (strlen(strip_request_item('dect')) <= 40) {
$user_source->contact->dect = strip_request_item('dect', $user_source['DECT']);
} else {
$valid = false;
- error(__('For dect numbers are only 5 digits allowed.'));
+ error(__('For dect numbers are only 40 digits allowed.'));
}
$user_source->contact->mobile = strip_request_item('mobile', $user_source['Handy']);