Skip to content

Commit

Permalink
fix(lookup): set up codes correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 19, 2021
1 parent a60d157 commit 2f373f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfservice/strategy/lookup/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (s *Strategy) continueSettingsFlowConfirm(w http.ResponseWriter, r *http.Re

rc := make([]RecoveryCode, len(codes))
for k := range rc {
rc[k] = RecoveryCode{Code: codes[k].String()}
rc[k] = RecoveryCode{Code: codes[k].Get("code").String()}
}

co, err := json.Marshal(&CredentialsConfig{RecoveryCodes: rc})
Expand Down

0 comments on commit 2f373f3

Please sign in to comment.