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