登录屏幕上没有用户注册

只需启动并运行ASP.NET Boilerplate项目,登录屏幕就会显示出来,但是没有选项可以在登录屏幕上注册新用户。

我想念什么吗?

WMLwml5200 回答:登录屏幕上没有用户注册

主机用户已禁用自我注册。

您可以更改为名为Default的租户,或修改AccountController.IsSelfRegistrationEnabled

private bool IsSelfRegistrationEnabled()
{
    if (!AbpSession.TenantId.HasValue)
    {
        // Comment out the line below to enable self-registration for host users
        return false; // No registration enabled for host users!
    }

    return true;
}

本文链接:https://www.f2er.com/3089584.html

大家都在问