From 1e7c9034ded97b32a7d79a1ba05b384028ec5081 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 7 Mar 2006 01:20:02 +0000 Subject: bug fix: call to undefined session_create in register.php (added function log_user called from identification and register) bug fix: empty line at the beginning of functions.php disallowed cookies (and hence logging in) git-svn-id: http://piwigo.org/svn/trunk@1068 68402e56-0260-453c-a942-63ccdbb3a9ee --- register.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'register.php') diff --git a/register.php b/register.php index 474b8a25b..d622d9bc4 100644 --- a/register.php +++ b/register.php @@ -36,7 +36,7 @@ if (isset($_POST['submit'])) { array_push($errors, $lang['reg_err_pass']); } - + $errors = array_merge( $errors, @@ -44,13 +44,12 @@ if (isset($_POST['submit'])) $_POST['password'], $_POST['mail_address']) ); - + if (count($errors) == 0) { $user_id = get_userid($_POST['login']); - $session_id = session_create($user_id, $conf['session_length']); - $url = 'category.php?id='.$session_id; - redirect($url); + log_user( $user_id, false); + redirect('category.php'); } } @@ -76,7 +75,7 @@ $template->assign_vars(array( 'L_EMAIL' => $lang['mail_address'], 'U_HOME' => PHPWG_ROOT_PATH.'category.php', - + 'F_ACTION' => 'register.php', 'F_LOGIN' => $login, 'F_EMAIL' => $email -- cgit v1.2.3