docs: record auth hash alignment and validation results
This commit is contained in:
1 parent
22887fef03
commit
f7819904b9
51 files changed
+1792
-542
No files matched your search
@@ -230,8 +230,8 @@ func TestStoreTOTPAndIdentifierPrimitives(t *testing.T) {
|
||||
if err := store.SetTOTPSecret(ctx, owner.ID, "JBSWY3DPEHPK3PXP"); err != nil {
|
||||
t.Fatalf("SetTOTPSecret() while disabled error = %v", err)
|
||||
}
|
||||
if err := store.EnableTOTP(ctx, owner.ID); err != nil {
|
||||
t.Fatal(err)
|
||||
if enabled, err := store.EnableTOTP(ctx, owner.ID, "JBSWY3DPEHPK3PXP", 123); err != nil || !enabled {
|
||||
t.Fatalf("EnableTOTP() = %v, %v; want enabled", enabled, err)
|
||||
}
|
||||
if err := store.SetTOTPSecret(ctx, owner.ID, "OTHERSECRET"); !errors.Is(err, ErrTOTPAlreadyEnabled) {
|
||||
t.Fatalf("SetTOTPSecret() while enabled error = %v, want ErrTOTPAlreadyEnabled", err)
|
||||
|
||||
Reference in new issue
Block a user