6 Answer(s)
-
0
Hi @avanekar02 which project type do you use ?
- MVC 5.x & jQuery
- MVC 5.x & Angualr Js
- ASP.NET Core & jQuery
- ASP.NET Core & Angular 2 ?
Thanks.
-
0
ASP.NET Core & Angular 2 ?
-
0
PR: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/pull/508">https://github.com/aspnetzero/aspnet-zero-core/pull/508</a>
-
0
thanks aron,
but my problem still exist i have replace UserManagement with TenantManagement but still does not work
my function
private bool UseCaptchaOnRegistration() { if (DebugHelper.IsDebug) { return false; }
var tenancyName = _tenancyNameFinder.GetCurrentTenancyNameOrNull(); if (tenancyName.IsNullOrEmpty()) { return true; } var tenant = AsyncHelper.RunSync(() => GetActiveTenantAsync(tenancyName)); return SettingManager.GetSettingValueForTenant<bool>(AppSettings.TenantManagement.UseCaptchaOnRegistration, tenant.Id); //return SettingManager.GetSettingValueForTenant<bool>(AppSettings.UserManagement.UseCaptchaOnRegistration, tenant.Id); }
-
0
Hello aron,
i think this part should be changed as mentioned below...
var tenancyName = _tenancyNameFinder.GetCurrentTenancyNameOrNull(); if (tenancyName.IsNullOrEmpty()) { // return true; return false; //---------------Change above to this }
-
0
Hi @avanekar02,
We can continue on @aaron's PR <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/pull/508">https://github.com/aspnetzero/aspnet-zero-core/pull/508</a>.