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:
6768dda
)
Auth: 3 neue auto_restore keys für session handling
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 16 Sep 2016 12:51:32 +0000
(14:51 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 26 Sep 2016 09:39:38 +0000
(11:39 +0200)
Die drei werden bei jedem Request gebraucht. Spart 2-3 DB Queries pro
Request.
SL/Auth.pm
patch
|
blob
|
history
diff --git
a/SL/Auth.pm
b/SL/Auth.pm
index
baa1eda
..
3f8589d
100644
(file)
--- a/
SL/Auth.pm
+++ b/
SL/Auth.pm
@@
-592,7
+592,7
@@
SQL
sub _load_with_auto_restore_column {
my ($self, $dbh, $session_id) = @_;
- my $auto_restore_keys = join ', ', map { "'${_}'" } qw(login password rpw
)
;
+ my $auto_restore_keys = join ', ', map { "'${_}'" } qw(login password rpw
client_id), SESSION_KEY_ROOT_AUTH, SESSION_KEY_USER_AUTH
;
my $query = <<SQL;
SELECT sess_key, sess_value, auto_restore