From 6df12176de6840c9114155dff8f841e44d7a4105 Mon Sep 17 00:00:00 2001 From: Christophe Maudoux Date: Wed, 3 Jul 2019 23:21:19 +0200 Subject: [PATCH] Disable secondFactor (#1783) --- .../lib/Lemonldap/NG/Portal/Plugins/ContextSwitching.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/ContextSwitching.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/ContextSwitching.pm index d6aca4b17..30a51b01b 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/ContextSwitching.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/ContextSwitching.pm @@ -192,7 +192,14 @@ sub _switchContext { $req->{user} = $spoofId; # Search user in database & create session - $req->steps( [ 'getUser', $self->p->sessionData, 'buildCookie' ] ); + $req->steps( [ + 'getUser', 'setAuthSessionInfo', + 'setSessionInfo', 'setMacros', + 'setGroups', 'setPersistentSessionInfo', + 'setLocalGroups', 'store', + 'buildCookie' + ] + ); if ( my $error = $self->p->process($req) ) { if ( $error == PE_BADCREDENTIALS ) { $self->userLogger->warn(