1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +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

@@ -82,7 +82,7 @@ class ucp_remind
$user_password = gen_rand_string(max(8, 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(rand(6, 10));
$user_actkey = gen_rand_string(mt_rand(6, 10));
$sql = 'UPDATE ' . USERS_TABLE . "
SET user_newpasswd = '" . $db->sql_escape(phpbb_hash($user_password)) . "', user_actkey = '" . $db->sql_escape($user_actkey) . "'