Skip to content

Commit

Permalink
Add a note on why EdgeDoEnsureSession is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
louischan-oursky committed Mar 6, 2024
1 parent 3fc2951 commit 3fbd8b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/lib/interaction/intents/change_password.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ func (i *IntentChangePassword) DeriveEdgesForNode(graph *interaction.Graph, node
},
}, nil
case *nodes.NodeChangePasswordEnd:
// We rely on NodeDoEnsureSession to write authentication info.
return []interaction.Edge{
&nodes.EdgeDoEnsureSession{
Mode: nodes.EnsureSessionModeNoop,
},
}, nil
case *nodes.NodeDoUpdateAuthenticator:
// We rely on NodeDoEnsureSession to write authentication info.
return []interaction.Edge{
&nodes.EdgeDoEnsureSession{
Mode: nodes.EnsureSessionModeNoop,
Expand Down

0 comments on commit 3fbd8b5

Please sign in to comment.