users/password.php:

- fixed syntax error
  https://sourceforge.net/tracker/index.php?func=detail&aid=1852533&group_id=191583&atid=937964
- use correct string for "password too short" message 
  (see r270 commit message)

en.lang:
- added usage comment on PALANG['pPasswordTooShort']


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@275 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
Christian Boltz 17 years ago
parent d39d7b44aa
commit 40045401d3

@ -359,7 +359,7 @@ $PALANG['pStatus_undeliverable'] = 'maybe UNDELIVERABLE ';
$PALANG['pStatus_custom'] = 'Delivers to ';
$PALANG['pStatus_popimap'] = 'POP/IMAP ';
$PALANG['pPasswordTooShort'] = "Password is too short - requires %s characters";
$PALANG['pPasswordTooShort'] = "Password is too short - requires %s characters"; # usage: flash_error(sprintf($PALANG['pPasswordTooShort'], $CONF['min_password_length']));
$PALANG['pFetchmail_welcome'] = 'Fetch mail for:';
$PALANG['pFetchmail_new_entry'] = 'New entry';

@ -48,7 +48,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
if(strlen($fPassword) < $CONF['min_password_length']) {
$error = 1;
flash_error($PALANG['pPassword_password_too_short_error'];
flash_error(sprintf($PALANG['pPasswordTooShort'], $CONF['min_password_length']));
}
$username = $USERID_USERNAME;

Loading…
Cancel
Save