1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 03:04:09 +02:00

Shorten the activation, key to allow for less than 77 characters..,yet still keep it as long as possible.

git-svn-id: file:///svn/phpbb/trunk@2459 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
the_systech
2002-04-01 19:19:49 +00:00
parent 985c0f8b6f
commit 1ba7e42bea
2 changed files with 11 additions and 2 deletions

View File

@@ -48,6 +48,9 @@ if ( isset($HTTP_POST_VARS['submit']) )
$username = $row['username'];
$user_actkey = gen_rand_string(true);
$key_len = 54 - strlen($server_url);
$key_len = ( $str_len > 6 ) ? $key_len : 6;
$user_actkey = substr($user_actkey, 0, $key_len);
$user_password = gen_rand_string(false);
$sql = "UPDATE " . USERS_TABLE . "
@@ -128,4 +131,4 @@ $template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
?>