aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
authorJosh Woody <a_jelly_doughnut@phpbb.com>2010-08-19 09:03:45 -0500
committerJosh Woody <a_jelly_doughnut@phpbb.com>2010-08-19 09:03:45 -0500
commit46d2d97a378e1fc40359d4eff911d352c9b05c20 (patch)
treeaaf1d43c17be2d10d40dd46bed0c54ab71eb720c /phpBB/includes/acp
parent64e6faa877af36f256da12d122e296f45706d359 (diff)
parentaf21e38c1d6f3fd738c97bd6cf0f96285c0b35aa (diff)
downloadforums-46d2d97a378e1fc40359d4eff911d352c9b05c20.tar
forums-46d2d97a378e1fc40359d4eff911d352c9b05c20.tar.gz
forums-46d2d97a378e1fc40359d4eff911d352c9b05c20.tar.bz2
forums-46d2d97a378e1fc40359d4eff911d352c9b05c20.tar.xz
forums-46d2d97a378e1fc40359d4eff911d352c9b05c20.zip
Merge branch 'ticket/bantu/9611' into develop-olympus
* ticket/bantu/9611: [ticket/9611] Make length of activation keys variable between 6 and 10.
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r--phpBB/includes/acp/acp_users.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php
index 1f10893781..9e8a4c80b9 100644
--- a/phpBB/includes/acp/acp_users.php
+++ b/phpBB/includes/acp/acp_users.php
@@ -319,10 +319,7 @@ class acp_users
$server_url = generate_board_url();
- $user_actkey = gen_rand_string(10);
- $key_len = 54 - (strlen($server_url));
- $key_len = ($key_len > 6) ? $key_len : 6;
- $user_actkey = substr($user_actkey, 0, $key_len);
+ $user_actkey = gen_rand_string(mt_rand(6, 10));
$email_template = ($user_row['user_type'] == USER_NORMAL) ? 'user_reactivate_account' : 'user_resend_inactive';
if ($user_row['user_type'] == USER_NORMAL)