Skip to content
Snippets Groups Projects
Commit 1b519e02 authored by Andrew Morgan's avatar Andrew Morgan Committed by Richard van der Hoff
Browse files

Disable /register/available if registration is disabled (#6082)

Fixes #6066

This register endpoint should be disabled if registration is disabled, otherwise we're giving anyone the ability to check if a username exists on a server when we don't need to be.

Error code is 403 (Forbidden) as that's the same returned by /register when registration is disabled.
parent 1c9feadf
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment