diff options
| author | Josh Woody <a_jelly_doughnut@phpbb.com> | 2010-08-19 09:11:36 -0500 |
|---|---|---|
| committer | Josh Woody <a_jelly_doughnut@phpbb.com> | 2010-08-19 09:11:36 -0500 |
| commit | 25c579c00d25356afead09f13031e69e22f91324 (patch) | |
| tree | 7466d1ef9e4d5c96f3369b5045d72796a219b746 /phpBB/includes/ucp | |
| parent | 46d2d97a378e1fc40359d4eff911d352c9b05c20 (diff) | |
| parent | c2b29c317f2d3bf41ed737c9eb3d49bce41ec432 (diff) | |
| download | forums-25c579c00d25356afead09f13031e69e22f91324.tar forums-25c579c00d25356afead09f13031e69e22f91324.tar.gz forums-25c579c00d25356afead09f13031e69e22f91324.tar.bz2 forums-25c579c00d25356afead09f13031e69e22f91324.tar.xz forums-25c579c00d25356afead09f13031e69e22f91324.zip | |
Merge branch 'ticket/bantu/9612' into develop-olympus
* ticket/bantu/9612:
[ticket/9612] Introduce new function gen_rand_string_friendly().
Diffstat (limited to 'phpBB/includes/ucp')
| -rw-r--r-- | phpBB/includes/ucp/ucp_remind.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_remind.php b/phpBB/includes/ucp/ucp_remind.php index 0042cd9df7..cb89ad99be 100644 --- a/phpBB/includes/ucp/ucp_remind.php +++ b/phpBB/includes/ucp/ucp_remind.php @@ -79,7 +79,7 @@ class ucp_remind // Make password at least 8 characters long, make it longer if admin wants to. // gen_rand_string() however has a limit of 12 or 13. - $user_password = gen_rand_string(max(8, rand((int) $config['min_pass_chars'], (int) $config['max_pass_chars']))); + $user_password = gen_rand_string_friendly(max(8, mt_rand((int) $config['min_pass_chars'], (int) $config['max_pass_chars']))); // For the activation key a random length between 6 and 10 will do. $user_actkey = gen_rand_string(mt_rand(6, 10)); |
