1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/9611] Make length of activation keys variable between 6 and 10.

PHPBB3-9611
This commit is contained in:
Andreas Fischer
2010-05-17 08:54:51 +02:00
parent 6d7e30ae99
commit af21e38c1d
4 changed files with 4 additions and 14 deletions

View File

@@ -314,10 +314,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)