If site does not allow registration then disable it.
This commit is contained in:
parent
4bb906a316
commit
5b48240322
@ -43,6 +43,14 @@
|
||||
|
||||
public override SecurityAccessLevel SecurityAccessLevel => SecurityAccessLevel.Anonymous;
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
if (!PageState.Site.AllowRegistration)
|
||||
{
|
||||
_message = "Registration is Disabled";
|
||||
}
|
||||
}
|
||||
|
||||
private async Task Register()
|
||||
{
|
||||
try
|
||||
|
Reference in New Issue
Block a user