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

Allow disabling of registration #98

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

Hellrespawn
Copy link

Adds an option to disable registration.

When enabled, this will hide the link to register on the login and lost password page. Manual GET and POST requests to /register will redirect to index with an error message in a toast.

I'm not familiar with Flask, so I don't know if there is a more idiomatic way of handling an invalid POST-request.

It does not touch the link in initial_home.md, but registration is enabled by default, so this shouldn't matter.

@redimp
Copy link
Owner

redimp commented Mar 8, 2024

Thanks for the PR!

Will look into the details tomorrow. Had this on my personal wishlist. I may also add the ability for admins to invite users/create user accounts.

@redimp redimp merged commit ef6b5a7 into redimp:main Mar 9, 2024
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

Successfully merging this pull request may close these issues.

2 participants