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 User Regsitration #480

Open
1 task done
Felitendo opened this issue Dec 9, 2024 · 5 comments · May be fixed by #518
Open
1 task done

Disable User Regsitration #480

Felitendo opened this issue Dec 9, 2024 · 5 comments · May be fixed by #518
Labels
type: feature-request New feature or request

Comments

@Felitendo
Copy link

🔖 Feature description

Please add an ENV-Variable called "USER_REGISTRATION" that we can set to "false" to disable new users from creating accounts

🎤 Why is this feature needed ?

Public Instances can be abused without this feature

✌️ How do you aim to achieve this?

Add an ENV-Variable called "USER_REGISTRATION" that we can set to "false" to disable new users from creating accounts

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

@Felitendo Felitendo added the type: feature-request New feature or request label Dec 9, 2024
@caushcani
Copy link

@nevo-david I can handle that if you want.

@Felitendo
Copy link
Author

@nevo-david I can handle that if you want.

That would be great!

@dib0
Copy link

dib0 commented Jan 1, 2025

For the time being: I'm using this in my NGINX reverse proxy config, maybe it can be of help for someone:
# Redirect /auth/ to /auth/login
location = /auth/ {
return 301 https://subdomain.domain.com/auth/login;
}
location = /auth {
return 301 https://subdomain.domain.com/auth/login;
}

# Block /api/auth/register
location = /api/auth/register {
    return 403;
}
location = /api/auth/register/ {
    return 403;
}

justsml added a commit to justsml/postiz-app that referenced this issue Jan 5, 2025
@justsml justsml linked a pull request Jan 5, 2025 that will close this issue
3 tasks
justsml added a commit to justsml/postiz-app that referenced this issue Jan 5, 2025
@nevo-david
Copy link
Contributor

@justsml
Copy link

justsml commented Jan 6, 2025

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

Successfully merging a pull request may close this issue.

5 participants