From ce22e03f9deaf424aa21c5cc0ef85e58992a7882 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 27 Nov 2021 14:53:34 +0100 Subject: Require confirmed email when checking oauth token (#332) * move token checker to security package * update tests with new security package * add oauth token checking to security package * check if user email confirmed when parsing token --- internal/cliactions/testrig/testrig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/cliactions/testrig/testrig.go') diff --git a/internal/cliactions/testrig/testrig.go b/internal/cliactions/testrig/testrig.go index d13f9e17b..5e55c3d03 100644 --- a/internal/cliactions/testrig/testrig.go +++ b/internal/cliactions/testrig/testrig.go @@ -97,7 +97,7 @@ var Start cliactions.GTSAction = func(ctx context.Context, _ *config.Config) err fileServerModule := fileserver.New(c, processor) adminModule := admin.New(c, processor) statusModule := status.New(c, processor) - securityModule := security.New(c, dbService) + securityModule := security.New(c, dbService, oauthServer) streamingModule := streaming.New(c, processor) favouritesModule := favourites.New(c, processor) blocksModule := blocks.New(c, processor) -- cgit v1.2.3