Skip to content

Commit 2442aed

Browse files
committed
Merge branch 'develop' of https://git.ispconfig.org/ispconfig/ispconfig3 into develop
2 parents a2b79ac + 2003c7c commit 2442aed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+342
-95
lines changed

install/tpl/apache_ispconfig.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Alias /.well-known/acme-challenge /usr/local/ispconfig/interface/acme/.well-know
136136
Allow from all
137137
</tmpl_if>
138138
<IfModule mpm_itk_module>
139-
AssignUserId www-data www-data
139+
AssignUserId ispconfig ispconfig
140140
</IfModule>
141141
</Directory>
142142

interface/lib/classes/auth.inc.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,36 @@ public function check_security_permissions($permission) {
198198

199199
}
200200

201+
/**
202+
* Get the minimum password length.
203+
*/
204+
public function get_min_password_length() {
205+
global $app;
206+
$server_config_array = $app->getconf->get_global_config();
207+
$min_password_length = 8;
208+
if(isset($server_config_array['misc']['min_password_length'])) $min_password_length = $server_config_array['misc']['min_password_length'];
209+
return $min_password_length;
210+
}
211+
212+
/**
213+
* Get the minimum password strength.
214+
*/
215+
public function get_min_password_strength() {
216+
global $app;
217+
$server_config_array = $app->getconf->get_global_config();
218+
$min_password_strength = 0;
219+
if(isset($server_config_array['misc']['min_password_strength'])) $min_password_strength = $server_config_array['misc']['min_password_strength'];
220+
return $min_password_strength;
221+
}
222+
223+
/**
224+
* Generate a ranmdom password.
225+
*
226+
* @param int $minLength
227+
* Minimum number of characters.
228+
* @param boolean $special
229+
* Include special characters, like # and !
230+
*/
201231
public function get_random_password($minLength = 8, $special = false) {
202232
if($minLength < 8) $minLength = 8;
203233
$maxLength = $minLength + 5;

interface/lib/classes/remote.d/mail.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ public function mail_user_add($session_id, $client_id, $params){
222222
if (!isset($params['gid'])) $params['gid'] = -1;
223223
if (!isset($params['maildir_format'])) $params['maildir_format'] = 'maildir';
224224

225-
$affected_rows = $this->insertQuery('../mail/form/mail_user.tform.php', $client_id, $params);
226-
return $affected_rows;
225+
$mailuser_id = $this->insertQuery('../mail/form/mail_user.tform.php', $client_id, $params);
226+
return $mailuser_id;
227227
}
228228

229229
//* Update mail user

interface/lib/classes/validate_password.inc.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,8 @@ function password_check($field_name, $field_value, $validator) {
111111
$app->uses('ini_parser,getconf');
112112
$server_config_array = $app->getconf->get_global_config();
113113

114-
$min_password_strength = 0;
115-
$min_password_length = 5;
116-
if(isset($server_config_array['misc']['min_password_length'])) $min_password_length = $server_config_array['misc']['min_password_length'];
117-
if(isset($server_config_array['misc']['min_password_strength'])) $min_password_strength = $server_config_array['misc']['min_password_strength'];
114+
$min_password_length = $app->auth->get_min_password_length();
115+
$min_password_strength = $app->auth->get_min_password_strength();
118116

119117
if($min_password_strength > 0) {
120118
$lng_text = $app->lng('weak_password_txt');

interface/web/admin/lib/lang/ar_directive_snippets.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ $wb['directive_snippets_name_empty'] = 'Please specify a name for the snippet.';
88
$wb['directive_snippets_name_error_unique'] = 'There is already a directive snippet with this name.';
99
$wb['variables_txt'] = 'Variables';
1010
$wb['customer_viewable_txt'] = 'Customer viewable';
11-
$wb['required_php_snippets_txt'] = 'Requiered PHP Snippet';
11+
$wb['required_php_snippets_txt'] = 'Required PHP Snippet';
1212
$wb['update_sites_txt'] = 'Update sites using this snippet';
1313
?>

interface/web/admin/lib/lang/bg_directive_snippets.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ $wb['directive_snippets_name_empty'] = 'Please specify a name for the snippet.';
88
$wb['directive_snippets_name_error_unique'] = 'There is already a directive snippet with this name.';
99
$wb['variables_txt'] = 'Variables';
1010
$wb['customer_viewable_txt'] = 'Customer viewable';
11-
$wb['required_php_snippets_txt'] = 'Requiered PHP Snippet';
11+
$wb['required_php_snippets_txt'] = 'Required PHP Snippet';
1212
$wb['update_sites_txt'] = 'Update sites using this snippet';
1313
?>

interface/web/admin/lib/lang/ca_directive_snippets.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ $wb['directive_snippets_name_empty'] = 'Please specify a name for the snippet.';
88
$wb['directive_snippets_name_error_unique'] = 'There is already a directive snippet with this name.';
99
$wb['variables_txt'] = 'Variables';
1010
$wb['customer_viewable_txt'] = 'Customer viewable';
11-
$wb['required_php_snippets_txt'] = 'Requiered PHP Snippet';
11+
$wb['required_php_snippets_txt'] = 'Required PHP Snippet';
1212
$wb['update_sites_txt'] = 'Update sites using this snippet';
1313
?>

interface/web/admin/lib/lang/cz_directive_snippets.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ $wb['directive_snippets_name_empty'] = 'Please specify a name for the snippet.';
88
$wb['directive_snippets_name_error_unique'] = 'There is already a directive snippet with this name.';
99
$wb['variables_txt'] = 'Proměnné';
1010
$wb['customer_viewable_txt'] = 'Dostupná volba pro klienta';
11-
$wb['required_php_snippets_txt'] = 'Requiered PHP Snippet';
11+
$wb['required_php_snippets_txt'] = 'Required PHP Snippet';
1212
$wb['update_sites_txt'] = 'Update sites using this snippet';
1313
?>

interface/web/admin/lib/lang/de_directive_snippets.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ $wb['directive_snippets_name_empty'] = 'Bitte geben Sie einen Namen für den Sch
88
$wb['directive_snippets_name_error_unique'] = 'Es existiert schon ein Direktiven-Schnipsel mit diesem Namen.';
99
$wb['variables_txt'] = 'Variablen';
1010
$wb['customer_viewable_txt'] = 'Sichtbar für Kunden';
11-
$wb['required_php_snippets_txt'] = 'Requiered PHP Snippet';
11+
$wb['required_php_snippets_txt'] = 'Required PHP Snippet';
1212
$wb['update_sites_txt'] = 'Update sites using this snippet';
1313
?>

interface/web/admin/lib/lang/dk_directive_snippets.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ $wb['directive_snippets_name_empty'] = 'Angiv et navn til uddrag.';
88
$wb['directive_snippets_name_error_unique'] = 'Der er allerede et direktiv uddrag med dette navn.';
99
$wb['variables_txt'] = 'Variabler';
1010
$wb['customer_viewable_txt'] = 'Customer viewable';
11-
$wb['required_php_snippets_txt'] = 'Requiered PHP Snippet';
11+
$wb['required_php_snippets_txt'] = 'Required PHP Snippet';
1212
$wb['update_sites_txt'] = 'Update sites using this snippet';
1313
?>

0 commit comments

Comments
 (0)