mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-05 22:52:46 +00:00
fix: missing webauthn converter for login (#1113)
This commit is contained in:
parent
584bcda108
commit
c5287364a4
@ -69,6 +69,9 @@ func HumanFromModel(user *model.Human) *Human {
|
|||||||
if user.U2FLogins != nil {
|
if user.U2FLogins != nil {
|
||||||
human.U2FLogins = WebAuthNLoginsFromModel(user.U2FLogins)
|
human.U2FLogins = WebAuthNLoginsFromModel(user.U2FLogins)
|
||||||
}
|
}
|
||||||
|
if user.PasswordlessLogins != nil {
|
||||||
|
human.PasswordlessLogins = WebAuthNLoginsFromModel(user.PasswordlessLogins)
|
||||||
|
}
|
||||||
return human
|
return human
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,6 +119,9 @@ func HumanToModel(user *Human) *model.Human {
|
|||||||
if user.U2FLogins != nil {
|
if user.U2FLogins != nil {
|
||||||
human.U2FLogins = WebAuthNLoginsToModel(user.U2FLogins)
|
human.U2FLogins = WebAuthNLoginsToModel(user.U2FLogins)
|
||||||
}
|
}
|
||||||
|
if user.PasswordlessLogins != nil {
|
||||||
|
human.PasswordlessLogins = WebAuthNLoginsToModel(user.PasswordlessLogins)
|
||||||
|
}
|
||||||
return human
|
return human
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user