Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invites don't work when registration is disabled #1706

Closed
2 tasks done
sergioisidoro opened this issue Feb 22, 2022 · 12 comments
Closed
2 tasks done

Invites don't work when registration is disabled #1706

sergioisidoro opened this issue Feb 22, 2022 · 12 comments

Comments

@sergioisidoro
Copy link

Past Issues Searched

  • I have searched open and closed issues to make sure that the bug has not yet been reported

Issue is a Bug Report

  • This is a bug report and not a feature request, nor asking for self-hosted support

Describe the bug

When registration is disabled, it's not possible to invite people to Plausible. To invite someone to the platform we need to change the environment variable, invite people, and then re-enable the flag to prevent unauthorised people from creating accounts.

Expected behavior

While the behaviour is understandable, if a user has a valid invite it should still be possible to register to plausible instance.

The feature for disabling registration (#86), I thought, was just to prevent random people from creating accounts in the landing page.

Alternatively, we could just add a note in the docs, mentioning that this also applies to valid invites :)

Screenshots

No response

Environment

No response

@metmarkosaric
Copy link
Contributor

thanks for reporting @sergioisidoro! this is expected behavior when registrations are disabled.

@jesperordrup
Copy link

How can I invite ppl without allowing anyone to register ?

@jesperordrup
Copy link

@ukutaht could you reopen this?

Is it possible to sponsor fixing this to get it out there to self hosting?

@ukutaht
Copy link
Contributor

ukutaht commented Apr 19, 2022

@ukutaht could you reopen this?

We keep the issue tracker for unambiguous bugs only. I think this one is on the line between a feature request and a bug report - the system works as designed but the design is too inflexible. Based on this I'll keep this issue closed and treat it as a feature request.

Is it possible to sponsor fixing this to get it out there to self hosting?

Not with the core team but we might find contributors who would be willing to work for a bounty. @Vigasaurus interested?

@Vigasaurus
Copy link
Contributor

Yeah, potentially. I haven't looked much at that part of the codebase, but @jesperordrup feel free to reach out via email and we can figure something out.

@jesperordrup
Copy link

@ukutaht could you reopen this?

We keep the issue tracker for unambiguous bugs only. I think this one is on the line between a feature request and a bug report - the system works as designed but the design is too inflexible. Based on this I'll keep this issue closed and treat it as a feature request.

Is it possible to sponsor fixing this to get it out there to self hosting?

Not with the core team but we might find contributors who would be willing to work for a bounty. @Vigasaurus interested?

Ok, I've emailed @Vigasaurus and hopefully we get it done. It only makes sense if you're willing to make a release just after test success?

Also this is what I believe is required in high level description:

  • Environment option, change.from true false to
    switch between: no reg, allow, invite only.

  • Update logic to allow register when invite only.

@genox
Copy link

genox commented Jan 9, 2023

Sorry for bumping this. :) Has there been any progress on this front? I just ended up in the same situation - trying to invite someone to a project with general registration being closed. IMHO it makes a lot of sense to have the option of an invite-only instance. We want to invite team members but not allow anybody to register and add sites at random.

@ruslandoga
Copy link
Contributor

ruslandoga commented Jan 10, 2023

@genox 👋

Yes, it has been implemented and released in v1.5. You can configure it by setting DISABLE_REGISTRATION=invite_only.

@genox
Copy link

genox commented Jan 11, 2023

Wonderful, thanks so much!

@stefanv
Copy link

stefanv commented Feb 6, 2023

Should this be added to the README?

@ruslandoga
Copy link
Contributor

ruslandoga commented Feb 6, 2023

@stefanv 👋

It'd probably not make it to the README since it's not (just) about self-hosting, but I'll open a PR into https://github.com/plausible/docs to update https://plausible.io/docs/self-hosting-configuration#server with DISABLE_REGISTRATION=invite_only option description tomorrow.

UPDATE plausible/docs#350

@stefanv
Copy link

stefanv commented Feb 6, 2023

Thanks @ruslandoga!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants