Skip to content

Commit

Permalink
pam/gdmmodel: Reset the waiting authentication on reselect auth mode
Browse files Browse the repository at this point in the history
After this happens we're gonna receive a further start authentication
event, so we need to stop considering the model being in auth phase
  • Loading branch information
3v1n0 committed Jul 3, 2024
1 parent f4ed03c commit c912c14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pam/internal/adapter/gdmmodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ func (m gdmModel) Update(msg tea.Msg) (gdmModel, tea.Cmd) {
StartAuthentication: &gdm.Events_StartAuthentication{},
}))

case reselectAuthMode:
m.waitingAuth = false

case isAuthenticatedResultReceived:
access := msg.access
authMsg, err := dataToMsg(msg.msg)
Expand Down

0 comments on commit c912c14

Please sign in to comment.