From 3a29a23cdc2823bbce30f5ab99ad01d72208de64 Mon Sep 17 00:00:00 2001 From: zeripath Date: Wed, 16 Feb 2022 21:03:58 +0000 Subject: Attempt to fix the webauthn migration again - part 3 (#18770) v208.go is seriously broken as it misses an ID() check. We need to no-op and remigrate all of the u2f keys. See #18756 Signed-off-by: Andrew Thornton --- models/auth/webauthn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/auth/webauthn.go') diff --git a/models/auth/webauthn.go b/models/auth/webauthn.go index e6c446af94..2dc3043780 100644 --- a/models/auth/webauthn.go +++ b/models/auth/webauthn.go @@ -43,7 +43,7 @@ type WebAuthnCredential struct { Name string LowerName string `xorm:"unique(s)"` UserID int64 `xorm:"INDEX unique(s)"` - CredentialID string `xorm:"INDEX"` + CredentialID string `xorm:"INDEX VARCHAR(410)"` PublicKey []byte AttestationType string AAGUID []byte -- cgit v1.2.3