mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge pull request #65 from phpbb/ticket/security-272
[ticket/security-272] Use longer random string for activation key
This commit is contained in:
commit
377ebacf0d
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ class ucp_register
|
||||||
$config['require_activation'] == USER_ACTIVATION_SELF ||
|
$config['require_activation'] == USER_ACTIVATION_SELF ||
|
||||||
$config['require_activation'] == USER_ACTIVATION_ADMIN) && $config['email_enable'])
|
$config['require_activation'] == USER_ACTIVATION_ADMIN) && $config['email_enable'])
|
||||||
{
|
{
|
||||||
$user_actkey = gen_rand_string(mt_rand(6, 10));
|
$user_actkey = strtolower(gen_rand_string(32));
|
||||||
$user_type = USER_INACTIVE;
|
$user_type = USER_INACTIVE;
|
||||||
$user_inactive_reason = INACTIVE_REGISTER;
|
$user_inactive_reason = INACTIVE_REGISTER;
|
||||||
$user_inactive_time = time();
|
$user_inactive_time = time();
|
||||||
|
|
Loading…
Add table
Reference in a new issue