From c5287364a493f0abf4482055519d6372dd0a5e26 Mon Sep 17 00:00:00 2001 From: Livio Amstutz Date: Thu, 17 Dec 2020 09:34:42 +0100 Subject: [PATCH] fix: missing webauthn converter for login (#1113) --- internal/user/repository/eventsourcing/model/user_human.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/user/repository/eventsourcing/model/user_human.go b/internal/user/repository/eventsourcing/model/user_human.go index 21f52947b0..3e191d65cb 100644 --- a/internal/user/repository/eventsourcing/model/user_human.go +++ b/internal/user/repository/eventsourcing/model/user_human.go @@ -69,6 +69,9 @@ func HumanFromModel(user *model.Human) *Human { if user.U2FLogins != nil { human.U2FLogins = WebAuthNLoginsFromModel(user.U2FLogins) } + if user.PasswordlessLogins != nil { + human.PasswordlessLogins = WebAuthNLoginsFromModel(user.PasswordlessLogins) + } return human } @@ -116,6 +119,9 @@ func HumanToModel(user *Human) *model.Human { if user.U2FLogins != nil { human.U2FLogins = WebAuthNLoginsToModel(user.U2FLogins) } + if user.PasswordlessLogins != nil { + human.PasswordlessLogins = WebAuthNLoginsToModel(user.PasswordlessLogins) + } return human }