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

[ticket/security-272] Use longer random string for activation key

SECURITY-272
This commit is contained in:
Marc Alexander
2021-12-21 20:39:14 +01:00
parent 3cf83f1a62
commit 33a789e030

View File

@@ -363,7 +363,7 @@ class ucp_register
$config['require_activation'] == USER_ACTIVATION_SELF ||
$config['require_activation'] == USER_ACTIVATION_ADMIN) && $config['email_enable'])
{
$user_actkey = gen_rand_string(mt_rand(6, 10));
$user_actkey = gen_rand_string(32);
$user_type = USER_INACTIVE;
$user_inactive_reason = INACTIVE_REGISTER;
$user_inactive_time = time();