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/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/cliactions/server/server.go') diff --git a/internal/cliactions/server/server.go b/internal/cliactions/server/server.go index b77efe07e..3e6acfe84 100644 --- a/internal/cliactions/server/server.go +++ b/internal/cliactions/server/server.go @@ -137,7 +137,7 @@ var Start cliactions.GTSAction = func(ctx context.Context, c *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