Skip to content

Commit

Permalink
Fix supported layout for the QR Code
Browse files Browse the repository at this point in the history
The additional code entry in the layout must be optional, not required.
Otherwise this invalidates QR Codes that do not have any code associated
with them.
  • Loading branch information
denisonbarbosa committed Jun 26, 2024
1 parent fa868ac commit f3ceeab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pam/internal/adapter/authmodeselection.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (m *authModeSelectionModel) Init() tea.Cmd {
{
Type: "qrcode",
Content: &required,
Code: &required,
Code: &optional,
Wait: &requiredWithBooleans,
Label: &optional,
Button: &optional,
Expand Down

0 comments on commit f3ceeab

Please sign in to comment.