[bug]: Login codes are sent on signup attempt when signup disabled
Open
@anmolsinghbhatia is already working on this.
Since May 1, 2025.
🐛bug
- Dominant language
- TypeScript
- Stars
- 59.6k
- Forks
- 5.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 49
Description
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
When I disable signups via the admin UI, then people can enter their email and an login code will be sent to them. When trying to enter the code, then the error appears, that signups are disabled.
I would expect that the error is already shown, when entering the email and no emails are sent, because they can't use it anyway and it causes unneccesary email traffic.
Steps to reproduce
- goto instance root url
- click on 'Create an account'
- enter email
- wait for login code email and enter it
- error is shown, that signup is disabled
Environment
Production
Browser
None
Variant
Self-hosted
Version
v0.25.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.