Browse Source

Add CheckCurrentTenant.

pull/9369/head
maliming 5 years ago
parent
commit
848aa2ecfa
  1. 8
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/AccountPageModel.cs

8
modules/account/src/Volo.Abp.Account.Web/Pages/Account/AccountPageModel.cs

@ -71,6 +71,14 @@ namespace Volo.Abp.Account.Web.Pages.Account
return false;
}
protected virtual void CheckCurrentTenant(Guid? tenantId)
{
if (CurrentTenant.Id != tenantId)
{
throw new ApplicationException($"Current tenant is different than given tenant. CurrentTenant.Id: {CurrentTenant.Id}, given tenantId: {tenantId}");
}
}
protected virtual void CheckIdentityErrors(IdentityResult identityResult)
{
if (!identityResult.Succeeded)

Loading…
Cancel
Save