From 9bef53dabfff7d39ecd0f0e2c631bd08acc2de53 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 10 Nov 2006 16:32:19 +0000 Subject: [PATCH] fixed bug in Auth.pm where an array was used to send placeholders instead of arrayref --- docs/changelog/7.x.x.txt | 2 ++ lib/WebGUI/Auth.pm | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index ab39b458b..a0faf5f77 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -3,6 +3,8 @@ times. - Fixed bugs the SyncProfileToLdap workflow activity where it would ignore the ldapAlias config setting and it crash (Martin Kamerbeek / Procolix) + - fix: entry in error log of WebGUI + 7.2.0 - Added server side spellchecker (Martin Kamerbeek / Procolix) diff --git a/lib/WebGUI/Auth.pm b/lib/WebGUI/Auth.pm index 7f5075202..3fd7155f1 100644 --- a/lib/WebGUI/Auth.pm +++ b/lib/WebGUI/Auth.pm @@ -94,11 +94,11 @@ sub _isValidUsername { sub _logLogin { my $self = shift; $self->session->db->write("insert into userLoginLog values (?,?,?,?,?)", - $_[0], + [ $_[0], $_[1], $self->session->datetime->time(), $self->session->env->getIp, - $self->session->env->get("HTTP_USER_AGENT") + $self->session->env->get("HTTP_USER_AGENT") ] ); }