From 94beb18a8c25fbb01f3599e054382e5ce9683583 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 5 Jun 2009 10:14:49 +0000 Subject: [PATCH] =?utf8?q?In=20der=20Funktion=20Auth::read=5Fuser()=20auch?= =?utf8?q?=20die=20User-ID=20zur=C3=BCckgeben.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Auth.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Auth.pm b/SL/Auth.pm index 094b58bda..be1b4c5df 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -358,7 +358,7 @@ sub read_user { my $login = shift; my $dbh = $self->dbconnect(); - my $query = qq|SELECT cfg.cfg_key, cfg.cfg_value + my $query = qq|SELECT u.id, cfg.cfg_key, cfg.cfg_value FROM auth.user_config cfg LEFT JOIN auth."user" u ON (cfg.user_id = u.id) WHERE (u.login = ?)|; @@ -368,7 +368,7 @@ sub read_user { while (my $ref = $sth->fetchrow_hashref()) { $user_data{$ref->{cfg_key}} = $ref->{cfg_value}; - $user_data{login} = $login; + @user_data{qw(id login)} = @{$ref}{qw(id login)}; } $sth->finish(); -- 2.20.1