File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -562,20 +562,21 @@ func (c *AuthflowController) AdvanceWithInput(
562562 result .NavigationAction = "redirect"
563563 result .RedirectURI = c .deriveFinishRedirectURI (r , s , & flowResponse2 )
564564
565- err = c .Sessions .Delete (s .ID )
566- if err != nil {
567- return
568- }
569-
570565 switch flowResponse2 .Type {
571566 case authflow .FlowTypeLogin :
572567 fallthrough
573568 case authflow .FlowTypePromote :
574569 fallthrough
575570 case authflow .FlowTypeSignup :
576571 fallthrough
572+ case authflow .FlowTypeSignupLogin :
573+ fallthrough
577574 case authflow .FlowTypeReauth :
578575 // Forget the session.
576+ err = c .Sessions .Delete (s .ID )
577+ if err != nil {
578+ return
579+ }
579580 result .Cookies = append (result .Cookies , c .Cookies .ClearCookie (c .SessionCookie .Def ))
580581 // Reset visitor ID.
581582 result .Cookies = append (result .Cookies , c .Cookies .ClearCookie (webapp .VisitorIDCookieDef ))
You can’t perform that action at this time.
0 commit comments