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

Disable SignUp #64

Open
dtmichel opened this issue Oct 28, 2023 · 8 comments
Open

Disable SignUp #64

dtmichel opened this issue Oct 28, 2023 · 8 comments
Labels
feature request New feature or request

Comments

@dtmichel
Copy link

I am new to Aptabase and I am trying to self-host in Docker for my own projects. I would like to restrict the SignUp feature but can't seem to find an option for it. Neither in the frontend nor as an environment variable for the docker container.
Am I just missing it or isn't there the possibility to disable the account creation? If it is missing, I'd like to submit a feature request.

@goenning
Copy link
Member

That’s not an option today, but something i want to add. What I usually recommend is to remove any smtp settings so that people won’t get email if they try to sign up.

@dtmichel
Copy link
Author

Ok, that’s an option, but I assumed that there is another reason for the SMTP settings besides the sign-up process. Haven’t yet explored all the features. If there are not other email notifications then I‘ll turn it off again.

@goenning
Copy link
Member

There will be more email notifications in future, but when we get there then there’ll be an option to disable sign up

@dtmichel
Copy link
Author

Perfect, thank you 👍🏻

@goenning goenning added the feature request New feature or request label Dec 16, 2023
@Robert27
Copy link

Robert27 commented Jan 19, 2024

Thank you very much for this incredibly great library.
Unfortunately, the method of removing the e-mail configuration is not a solution in the long term, as the cookie gets sometimes deleted or invalidated. Especially when working in a group of people.

In addition, I had the idea not to completely deactivate the registration, but only to restrict it to a specific e-mail domain to limit sign-ups to my organization members.

Since I have not enough experience with all used frameworks, I could not get the repo running and provide a PR myself (had problems with generating the registration link).
Therefore, my question, are there any updates for the implementation?

@goenning
Copy link
Member

I’ll try adding a contribution guide, shouldn’t take long. Let’s just agree on the high level solution. I was thinking of an environment variable with a regex. If the user enters an email that does not match the regex, then login/registration is blocked. That’s probably the most flexible, but not the most user friendly option.

the alternative is 3 env vars. one with a list of domains and another with a list of email addresses, same logic as above, but without regex.

Thoughts?

@dtmichel
Copy link
Author

Both solutions would be fine with me. The second one sounds more universal.

@goenning goenning assigned dtmichel and Robert27 and unassigned dtmichel Jan 21, 2024
@goenning
Copy link
Member

So let's go with second, it'll be simpler for folks to configure instead of fiddling with regex patterns

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

No branches or pull requests

3 participants