mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
git-svn-id: file:///svn/phpbb/trunk@7862 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
49e78aa98c
commit
d81f96877f
2 changed files with 3 additions and 1 deletions
|
@ -203,6 +203,7 @@ p a {
|
||||||
<li>[Fix] Preserve preview style on search form (Bug #13205)</li>
|
<li>[Fix] Preserve preview style on search form (Bug #13205)</li>
|
||||||
<li>[Fix] Place attachment filename in new line in posting editor (Bug #9726)</li>
|
<li>[Fix] Place attachment filename in new line in posting editor (Bug #9726)</li>
|
||||||
<li>[Fix] Don't allow caching to occur in the update sequence (Bug #13207)</li>
|
<li>[Fix] Don't allow caching to occur in the update sequence (Bug #13207)</li>
|
||||||
|
<li>[Fix] Enforce the max password length for automatically generated password created by the password sender (Bug #13181)</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,8 @@ class ucp_remind
|
||||||
$server_url = generate_board_url();
|
$server_url = generate_board_url();
|
||||||
|
|
||||||
$key_len = 54 - strlen($server_url);
|
$key_len = 54 - strlen($server_url);
|
||||||
$key_len = ($key_len < 6) ? 6 : $key_len;
|
$key_len = max(6, $key_len); // we want at least 6
|
||||||
|
$key_len = ($config['max_pass_chars']) ? min($key_len, $config['max_pass_chars']) : $key_len; // we want at most $config['max_pass_chars']
|
||||||
$user_actkey = substr(gen_rand_string(10), 0, $key_len);
|
$user_actkey = substr(gen_rand_string(10), 0, $key_len);
|
||||||
$user_password = gen_rand_string(8);
|
$user_password = gen_rand_string(8);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue