From c935584300d6d51e58ecf434c5d6bd27f1679cc2 Mon Sep 17 00:00:00 2001 From: Thomas CHEMINEAU Date: Tue, 4 May 2010 15:55:48 +0000 Subject: [PATCH] informations is correctly stored into session but not well displayed by manager (add _utime, remove useless code) --- modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm | 3 +++ .../lemonldap-ng-portal/lib/Lemonldap/NG/Portal/UserDBLDAP.pm | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm b/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm index ffa4eb91d..661d54e0f 100644 --- a/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm +++ b/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm @@ -1110,6 +1110,9 @@ sub setAuthSessionInfo { # Get the current authentication module $self->{sessionInfo}->{_auth} = $self->get_module("auth"); + # Store primary informations + $self->{sessionInfo}->{'_utime'} = time(); + return $self->SUPER::setAuthSessionInfo(); } diff --git a/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/UserDBLDAP.pm b/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/UserDBLDAP.pm index 8be3171c6..dfdf8a2f8 100644 --- a/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/UserDBLDAP.pm +++ b/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/UserDBLDAP.pm @@ -117,8 +117,6 @@ sub setSessionInfo { else { $self->abort('Only hash reference are supported now in exportedVars'); } - # Store other informations in session - $self->{sessionInfo}->{'_user'} = $self->{user}; PE_OK; }