If site does not allow registration then disable it.

This commit is contained in:
Mike Casas 2020-04-14 16:55:03 -04:00
parent 4bb906a316
commit 5b48240322

View File

@ -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