Flagsmith / Flagsmith/flagsmith

Signups after invite links not working when `PREVENT_SIGNUPS` enabled

Open
#5,378 0 comments 0 reactions 0 assignees View on GitHub
bug front-end
Dominant language
Python
Stars
6.6k
Forks
567
Avg merge
1d 13h
Merged PRs (30d)
121

Description

### How are you running Flagsmith

- [x] Self Hosted with Docker
- [x] Self Hosted with Kubernetes
- [ ] SaaS at flagsmith.com
- [x] Some other way (add details in description below)

### Describe the bug

When an organisation invite link is opened, the signup page is displayed even if `PREVENT_SIGNUP` is enabled. However, if a user tries to sign up from this page, they receive an error message with no information:

Image

### Steps To Reproduce

1. Deploy the default Docker Compose with `PREVENT_SIGNUP: true`
2. Open an organisation invite link and try to sign up

### Expected behavior

When `PREVENT_SIGNUP` is enabled, users should be allowed to sign up only when they are provisioned by SSO or following an invitation link.

### Screenshots

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.