Skip to content

Commit

Permalink
fix: suspension logic in skip_passkey and skip_password
Browse files Browse the repository at this point in the history
  • Loading branch information
lfleischmann committed Aug 1, 2024
1 parent acf8350 commit b0fb3e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (a SkipPasskey) Initialize(c flowpilot.InitializationContext) {
}

if (c.IsPreviousState(shared.StatePasscodeConfirmation) || c.IsPreviousState(shared.StateRegistrationInit)) &&
!a.acquirePassword(c, "always") &&
a.acquirePassword(c, "never") &&
!canLoginWithEmail {
c.SuspendAction()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (a SkipPassword) Initialize(c flowpilot.InitializationContext) {
}

if (c.IsPreviousState(shared.StatePasscodeConfirmation) || c.IsPreviousState(shared.StateRegistrationInit)) &&
!a.acquirePasskey(c, "always") &&
a.acquirePasskey(c, "never") &&
!canLoginWithEmail {
c.SuspendAction()
}
Expand Down

0 comments on commit b0fb3e1

Please sign in to comment.