]> source.dussan.org Git - gitea.git/commit
Attempt to fix the webauthn migration again - part 3 (#18770)
authorzeripath <art27@cantab.net>
Wed, 16 Feb 2022 21:03:58 +0000 (21:03 +0000)
committerGitHub <noreply@github.com>
Wed, 16 Feb 2022 21:03:58 +0000 (21:03 +0000)
commit3a29a23cdc2823bbce30f5ab99ad01d72208de64
tree11f1a2e0e5e5c0f9617a7e29500940327e339800
parentf48771ae78b5e5b3caa60c55b3253229ea804ab5
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>
14 files changed:
models/auth/webauthn.go
models/migrations/fixtures/Test_increaseCredentialIDTo410/expected_webauthn_credential.yml [deleted file]
models/migrations/fixtures/Test_increaseCredentialIDTo410/u2f_registration.yml [deleted file]
models/migrations/fixtures/Test_increaseCredentialIDTo410/webauthn_credential.yml [deleted file]
models/migrations/fixtures/Test_remigrateU2FCredentials/expected_webauthn_credential.yml [new file with mode: 0644]
models/migrations/fixtures/Test_remigrateU2FCredentials/u2f_registration.yml [new file with mode: 0644]
models/migrations/fixtures/Test_remigrateU2FCredentials/webauthn_credential.yml [new file with mode: 0644]
models/migrations/migrations.go
models/migrations/v207.go
models/migrations/v208.go
models/migrations/v209.go
models/migrations/v209_test.go [deleted file]
models/migrations/v210.go [new file with mode: 0644]
models/migrations/v210_test.go [new file with mode: 0644]