diff --git a/interface/web/mail/form/mail_user.tform.php b/interface/web/mail/form/mail_user.tform.php index 88994d640d2f9f34a15b21b5637b4f4887d572ee..b6f8dfa093a196abbcb74ae13fc896edab6f7541 100644 --- a/interface/web/mail/form/mail_user.tform.php +++ b/interface/web/mail/form/mail_user.tform.php @@ -38,6 +38,8 @@ */ global $app; +$app->uses('getconf'); +$global_config = $app->getconf->get_global_config(); $form["title"] = "Mailbox"; $form["description"] = ""; @@ -56,7 +58,7 @@ $form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, $form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete -$form["tabs"]['mailuser'] = array ( +$form["tabs"]['mailuser'] = array( 'title' => "Mailbox", 'width' => 100, 'template' => "templates/mail_user_mailbox_edit.htm", @@ -230,6 +232,12 @@ $form["tabs"]['mailuser'] = array ( ) ); +if($global_config['mail']['mail_password_onlyascii'] == 'y') { + $form['tabs']['mailuser']['fields']['password']['validators'] = array( 0 => array( 'type' => 'ISASCII', + 'errmsg' => 'email_error_isascii') + ); +} + $form["tabs"]['autoresponder'] = array ( 'title' => "Autoresponder", 'width' => 100, diff --git a/interface/web/mail/lib/lang/de_mail_user.lng b/interface/web/mail/lib/lang/de_mail_user.lng index 23f413782cb42b6486494304fcd63c444d0df657..b5bdc598b42def87fc180ea48da375a8be58e3e1 100644 --- a/interface/web/mail/lib/lang/de_mail_user.lng +++ b/interface/web/mail/lib/lang/de_mail_user.lng @@ -47,4 +47,5 @@ $wb['generate_password_txt'] = 'Passwort erzeugen'; $wb['repeat_password_txt'] = 'Passwort wiederholen'; $wb['password_mismatch_txt'] = 'Die Passwörter stimmen nicht überein.'; $wb['password_match_txt'] = 'Die Passwörter stimmen überein.'; +$wb['email_error_isascii'] = 'Bitte verwenden Sie keine Umlaute im Passwort. Dies kann zu Problemen mit Ihrem E-Mail-Programm führen.'; ?> \ No newline at end of file diff --git a/interface/web/mail/lib/lang/en_mail_user.lng b/interface/web/mail/lib/lang/en_mail_user.lng index f180deea83d97e3014264fd8363e39d9cfaf3be9..81301db3526ebd66379fdc2032994f6e0e001663 100644 --- a/interface/web/mail/lib/lang/en_mail_user.lng +++ b/interface/web/mail/lib/lang/en_mail_user.lng @@ -47,4 +47,5 @@ $wb['generate_password_txt'] = 'Generate Password'; $wb['repeat_password_txt'] = 'Repeat Password'; $wb['password_mismatch_txt'] = 'The passwords do not match.'; $wb['password_match_txt'] = 'The passwords do match.'; +$wb['email_error_isascii'] = 'Please do not use special unicode characters for your password. This could lead to problems with your mail client.'; ?>