diff --git a/modules/account/src/Volo.Abp.Account.Web.IdentityServer/Areas/Account/Controllers/ErrorController.cs b/modules/account/src/Volo.Abp.Account.Web.IdentityServer/Areas/Account/Controllers/ErrorController.cs index 1262d0c42ce..d06efee3375 100644 --- a/modules/account/src/Volo.Abp.Account.Web.IdentityServer/Areas/Account/Controllers/ErrorController.cs +++ b/modules/account/src/Volo.Abp.Account.Web.IdentityServer/Areas/Account/Controllers/ErrorController.cs @@ -31,7 +31,7 @@ public ErrorController( _abpErrorPageOptions = abpErrorPageOptions.Value; } - public async Task Index(string errorId) + public virtual async Task Index(string errorId) { var errorMessage = await _interaction.GetErrorContextAsync(errorId) ?? new ErrorMessage { @@ -53,7 +53,7 @@ public async Task Index(string errorId) }); } - private string GetErrorPageUrl(int statusCode) + protected virtual string GetErrorPageUrl(int statusCode) { var page = _abpErrorPageOptions.ErrorViewUrls.GetOrDefault(statusCode.ToString());