mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
a language alteration for captchas.
Added min/max captcha chars constants and changed the length from 5-8 to 4-7 git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9437 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -485,7 +485,7 @@ class ucp_register
|
||||
trigger_error('TOO_MANY_REGISTERS');
|
||||
}
|
||||
|
||||
$code = gen_rand_string(mt_rand(5, 8));
|
||||
$code = gen_rand_string(mt_rand(CAPTCHA_MIN_CHARS, CAPTCHA_MAX_CHARS));
|
||||
$confirm_id = md5(unique_id($user->ip));
|
||||
$seed = hexdec(substr(unique_id(), 4, 10));
|
||||
|
||||
@@ -503,7 +503,7 @@ class ucp_register
|
||||
}
|
||||
else if ($confirm_refresh)
|
||||
{
|
||||
$code = gen_rand_string(mt_rand(5, 8));
|
||||
$code = gen_rand_string(mt_rand(CAPTCHA_MIN_CHARS, CAPTCHA_MAX_CHARS));
|
||||
$confirm_id = md5(unique_id($user->ip));
|
||||
$seed = hexdec(substr(unique_id(), 4, 10));
|
||||
// compute $seed % 0x7fffffff
|
||||
|
Reference in New Issue
Block a user