Commit 3ee708d8 authored by Maxime Besson's avatar Maxime Besson

Delay cookie restore after hooks (#1965)

parent 3d4aebcb
Pipeline #6712 passed with stage
in 13 minutes and 6 seconds
......@@ -118,7 +118,6 @@ sub _verify {
$req->id( delete $req->sessionInfo->{_2fRealSession} );
$req->urldc( delete $req->sessionInfo->{_2fUrldc} );
$req->{sessionInfo}->{_utime} = delete $req->{sessionInfo}->{_2fUtime};
$self->p->rebuildCookies($req);
$req->mustRedirect(1);
$self->userLogger->notice( $self->prefix
. '2F verification for '
......@@ -133,6 +132,7 @@ sub _verify {
[
@{ $self->p->afterData },
$self->p->validSession,
'rebuildCookies',
@{ $self->p->endAuth },
sub { PE_OK }
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment