aboutsummaryrefslogtreecommitdiffstats
path: root/models/auth/webauthn.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-02-16 21:03:58 +0000
committerGitHub <noreply@github.com>2022-02-16 21:03:58 +0000
commit3a29a23cdc2823bbce30f5ab99ad01d72208de64 (patch)
tree11f1a2e0e5e5c0f9617a7e29500940327e339800 /models/auth/webauthn.go
parentf48771ae78b5e5b3caa60c55b3253229ea804ab5 (diff)
downloadgitea-3a29a23cdc2823bbce30f5ab99ad01d72208de64.tar.gz
gitea-3a29a23cdc2823bbce30f5ab99ad01d72208de64.zip
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 <art27@cantab.net>
Diffstat (limited to 'models/auth/webauthn.go')
-rw-r--r--models/auth/webauthn.go2
1 files changed, 1 insertions, 1 deletions
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