dotnet / dotnet/aspnetcore

We should be able to enable/disable new user registration from the configuration

Open
#25,074 1 comment 0 reactions 0 assignees View on GitHub
affected-few area-identity enhancement severity-minor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is your feature request related to a problem? Please describe.
I want to temporary prevent users from registering new users. Without much code, I am unable to do it. Its seems to be a common things to do.

### Describe the solution you'd like
The `IdentityOptions` class should have a property called `AllowRegistration` which should be set to `true` by default. If a user attempt to register new account, he/she will get blocked.

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.