Skip to content

Commit bff0317

Browse files
committed
Set the default value of BackupEligible to true
1 parent 571d752 commit bff0317

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

go.mod

-2
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,6 @@ replace github.com/charmbracelet/git-lfs-transfer => gitea.com/gitea/git-lfs-tra
336336
// TODO: This could be removed after https://github.com/mholt/archiver/pull/396 merged
337337
replace github.com/mholt/archiver/v3 => github.com/anchore/archiver/v3 v3.5.2
338338

339-
replace github.com/go-webauthn/webauthn => github.com/go-webauthn/webauthn v0.10.2
340-
341339
exclude github.com/gofrs/uuid v3.2.0+incompatible
342340

343341
exclude github.com/gofrs/uuid v4.0.0+incompatible

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ github.com/go-test/deep v1.1.0 h1:WOcxcdHcvdgThNXjw0t76K42FXTU7HpNQWHpA2HHNlg=
374374
github.com/go-test/deep v1.1.0/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE=
375375
github.com/go-testfixtures/testfixtures/v3 v3.11.0 h1:XxQr8AnPORcZkyNd7go5UNLPD3dULN8ixYISlzrlfEQ=
376376
github.com/go-testfixtures/testfixtures/v3 v3.11.0/go.mod h1:THmudHF1Ixq++J2/UodcJpxUphfyEd77m83TvDtryqE=
377-
github.com/go-webauthn/webauthn v0.10.2 h1:OG7B+DyuTytrEPFmTX503K77fqs3HDK/0Iv+z8UYbq4=
378-
github.com/go-webauthn/webauthn v0.10.2/go.mod h1:Gd1IDsGAybuvK1NkwUTLbGmeksxuRJjVN2PE/xsPxHs=
377+
github.com/go-webauthn/webauthn v0.11.2 h1:Fgx0/wlmkClTKlnOsdOQ+K5HcHDsDcYIvtYmfhEOSUc=
378+
github.com/go-webauthn/webauthn v0.11.2/go.mod h1:aOtudaF94pM71g3jRwTYYwQTG1KyTILTcZqN1srkmD0=
379379
github.com/go-webauthn/x v0.1.15 h1:eG1OhggBJTkDE8gUeOlGRbRe8E/PSVG26YG4AyFbwkU=
380380
github.com/go-webauthn/x v0.1.15/go.mod h1:pf7VI23raFLHPO9VVIs9/u1etqwAOP0S2KoHGL6WbZ8=
381381
github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y=

models/auth/webauthn.go

+3
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ func (list WebAuthnCredentialList) ToCredentials() []webauthn.Credential {
102102
SignCount: cred.SignCount,
103103
CloneWarning: cred.CloneWarning,
104104
},
105+
Flags: webauthn.CredentialFlags{
106+
BackupEligible: true,
107+
},
105108
})
106109
}
107110
return creds

0 commit comments

Comments
 (0)