From 0a763d10d0a31403a0310eefb976d94f490e8031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Wed, 16 Feb 2022 19:55:02 +0100 Subject: [PATCH] Fix site accounts endpoints (#2555) --- changelog/unreleased/siteacc-fix.md | 5 +++++ pkg/siteacc/endpoints.go | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 changelog/unreleased/siteacc-fix.md diff --git a/changelog/unreleased/siteacc-fix.md b/changelog/unreleased/siteacc-fix.md new file mode 100644 index 0000000000..3f5a4d8866 --- /dev/null +++ b/changelog/unreleased/siteacc-fix.md @@ -0,0 +1,5 @@ +Bugfix: Fix site accounts endpoints + +This PR fixes small bugs in the site accounts endpoints. + +https://github.com/cs3org/reva/pull/2555 diff --git a/pkg/siteacc/endpoints.go b/pkg/siteacc/endpoints.go index 23fd36197c..50c4fd5419 100644 --- a/pkg/siteacc/endpoints.go +++ b/pkg/siteacc/endpoints.go @@ -82,8 +82,8 @@ func getEndpoints() []endpoint { // Login endpoints {config.EndpointLogin, callMethodEndpoint, createMethodCallbacks(nil, handleLogin), true}, {config.EndpointLogout, callMethodEndpoint, createMethodCallbacks(handleLogout, nil), true}, - {config.EndpointResetPassword, callMethodEndpoint, createMethodCallbacks(nil, handleResetPassword), false}, - {config.EndpointContact, callMethodEndpoint, createMethodCallbacks(nil, handleContact), false}, + {config.EndpointResetPassword, callMethodEndpoint, createMethodCallbacks(nil, handleResetPassword), true}, + {config.EndpointContact, callMethodEndpoint, createMethodCallbacks(nil, handleContact), true}, // Authentication endpoints {config.EndpointVerifyUserToken, callMethodEndpoint, createMethodCallbacks(handleVerifyUserToken, nil), true}, // Authorization endpoints