diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2010-05-17 08:54:51 +0200 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2010-05-17 08:54:51 +0200 |
| commit | af21e38c1d6f3fd738c97bd6cf0f96285c0b35aa (patch) | |
| tree | 4ae0eee1e9e0ddb5688fa661288f7baac60ba64a /phpBB/includes/ucp/ucp_profile.php | |
| parent | 6d7e30ae995fe0791c2bced0974b0445fa769ee9 (diff) | |
| download | forums-af21e38c1d6f3fd738c97bd6cf0f96285c0b35aa.tar forums-af21e38c1d6f3fd738c97bd6cf0f96285c0b35aa.tar.gz forums-af21e38c1d6f3fd738c97bd6cf0f96285c0b35aa.tar.bz2 forums-af21e38c1d6f3fd738c97bd6cf0f96285c0b35aa.tar.xz forums-af21e38c1d6f3fd738c97bd6cf0f96285c0b35aa.zip | |
[ticket/9611] Make length of activation keys variable between 6 and 10.
PHPBB3-9611
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
| -rw-r--r-- | phpBB/includes/ucp/ucp_profile.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index f4f4abad4a..6b255e81a0 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -141,10 +141,7 @@ class ucp_profile $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)); $messenger = new messenger(false); |
