From bcaf0c1736bcd91fd5ad541dd0a7916bc37b2baf Mon Sep 17 00:00:00 2001 From: josch Date: Wed, 30 Apr 2008 11:43:21 +0000 Subject: [PATCH] fixed registration git-svn-id: http://yolanda.mister-muffin.de/svn@338 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/register.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/register.pl b/trunk/register.pl index 4a26599..939efcb 100644 --- a/trunk/register.pl +++ b/trunk/register.pl @@ -44,8 +44,8 @@ elsif($query->param('user') and $query->param('pass') and $query->param('pass_re else { #insert new user - $dbh->do(qq{insert into users (username, password, timestamp) values ( ?, password( ? ), unix_timestamp(), ?)}, undef, - $query->param("user"), $query->param("pass")) or die $dbh->errstr; + $dbh->do(qq{insert into users (username, password, timestamp, sid) values ( ?, password( ? ), unix_timestamp(), ?)}, undef, + $query->param("user"), $query->param("pass"), $session->id) or die $dbh->errstr; print $query->redirect("index.pl?information=information_registered"); }