projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6737d96
)
In der Funktion Auth::read_user() auch die User-ID zurückgeben.
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 5 Jun 2009 10:14:49 +0000
(10:14 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 5 Jun 2009 10:14:49 +0000
(10:14 +0000)
SL/Auth.pm
patch
|
blob
|
history
diff --git
a/SL/Auth.pm
b/SL/Auth.pm
index
094b58b
..
be1b4c5
100644
(file)
--- 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();