diff --git a/src/prefs.php b/src/prefs.php index f731459..1801caa 100644 --- a/src/prefs.php +++ b/src/prefs.php @@ -1355,7 +1355,13 @@ else if($_REQUEST['action'] == 'extpop3') && IsPOSTRequest()) { $_REQUEST['p_user'] = str_replace(array("\n", "\r"), '', $_REQUEST['p_user']); - $_REQUEST['p_pass'] = str_replace(array("\n", "\r"), '', $_REQUEST['p_pass']); + if(empty($_REQUEST['p_pass'])) { + $account = $thisUser->GetPOP3Account((int)$_REQUEST['id']); + $_REQUEST['p_pass'] = $account['p_pass']; + } + else { + $_REQUEST['p_pass'] = str_replace(array("\n", "\r"), '', $_REQUEST['p_pass']); + } if(CheckPOP3Login($_REQUEST['p_host'], (int)$_REQUEST['p_port'], $_REQUEST['p_user'], $_REQUEST['p_pass'], isset($_REQUEST['p_ssl']))) { diff --git a/src/templates/modern/js/prefs.js b/src/templates/modern/js/prefs.js index 752573c..9b5dcb1 100644 --- a/src/templates/modern/js/prefs.js +++ b/src/templates/modern/js/prefs.js @@ -96,7 +96,6 @@ function checkPOP3AccountForm(form) { if(form.elements['p_host'].value.length < 2 || form.elements['p_user'].value.length < 2 - || form.elements['p_pass'].value.length < 2 || form.elements['p_port'].value.length < 1) { alert(lang['fillin']); diff --git a/src/templates/modern/li/prefs.extpop3.edit.tpl b/src/templates/modern/li/prefs.extpop3.edit.tpl index e470530..e73bb5c 100644 --- a/src/templates/modern/li/prefs.extpop3.edit.tpl +++ b/src/templates/modern/li/prefs.extpop3.edit.tpl @@ -39,9 +39,9 @@ - * + - +