Skip to content
Discussion options

You must be logged in to vote

The setting is working — it just doesn't hide the button. Try actually submitting the registration form and you should get a 405.

The backend enforces it in gramps-web-api, api/resources/user.py:

def _is_disabled(self, tree: Optional[str]) -> bool:
    """Check if the registration is disabled."""
    if current_app.config["REGISTRATION_DISABLED"]:
        return True
if self._is_disabled(tree=args.get("tree")):
    abort_with_message(405, "Registration is disabled")

so GRAMPSWEB_REGISTRATION_DISABLED is doing its job. No accounts can be created.

The reason the UI doesn't reflect it is that the frontend has no way to find out. The only place the server advertises its configuration is the s…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@jrucker2004
Comment options

@MLuc24
Comment options

@jrucker2004
Comment options

Answer selected by jrucker2004
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants