diff --git a/users/echo_test.go b/users/echo_test.go index 70d2f54..f7fd220 100644 --- a/users/echo_test.go +++ b/users/echo_test.go @@ -107,7 +107,7 @@ func TestRequestVerifyEcho(t *testing.T) { URL: norm, } - result := usrs.Verify(context.TODO(), usr) + result := usrs.RequestVerify(context.TODO(), usr) t.Logf("result: %+v", result) require.Equal(t, user.StatusOK, result.Status) } diff --git a/users/users.go b/users/users.go index 3b6abd2..8cdd6e0 100644 --- a/users/users.go +++ b/users/users.go @@ -109,8 +109,8 @@ func (u *Users) CheckSigchain(ctx context.Context, sc *keys.Sigchain) (*user.Res return result, nil } -// Verify a user. Doesn't index result. -func (u *Users) Verify(ctx context.Context, usr *user.User) *user.Result { +// RequestVerify requests and verifies a user. Doesn't index result. +func (u *Users) RequestVerify(ctx context.Context, usr *user.User) *user.Result { return usr.RequestVerify(ctx, user.Requestor(u.req), user.Clock(u.clock)) } diff --git a/users/users_test.go b/users/users_test.go index becf9c1..e60bdb3 100644 --- a/users/users_test.go +++ b/users/users_test.go @@ -65,7 +65,7 @@ func TestCheckFailure(t *testing.T) { Service: "twitter", URL: "https://twitter.com/boboloblaw/status/1259188857846632448", } - result := usrs.Verify(context.TODO(), usr) + result := usrs.RequestVerify(context.TODO(), usr) require.Equal(t, usr.Name, result.User.Name) require.Equal(t, result.Status, user.StatusFailure) require.Equal(t, result.Err, "path invalid (name mismatch) for url https://twitter.com/boboloblaw/status/1259188857846632448")