Base solution for your next web application

Activities of "ismcagdas"

Hi,

Can you share code for your custom manager ? So we can try to create same scenario.

Thanks.

Hi,

Can you change this definition in accoun controller

user.Logins = new List<UserLogin>
{
    new UserLogin
    {
        LoginProvider = externalLoginInfo.Login.LoginProvider,
        ProviderKey = externalLoginInfo.Login.ProviderKey
    }
};

to

user.Logins = new List<UserLogin>
{
    new UserLogin
    {
        LoginProvider = externalLoginInfo.Login.LoginProvider,
        ProviderKey = externalLoginInfo.Login.ProviderKey,
        TenantId = tenant.Id
    }
};

we forgot to set tenantId when defining UserLogins. This will be fixed on the next release as well.

Answer

Hi,

Can you try to change your route config like this.

routes.MapRoute(
    name: "Default",
    url: "",
    defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
    namespaces: new[] { "**********.Web.Controllers" }
);

routes.MapRoute(
    name: "URL",
    url: "{name}",
    defaults: new { controller = "ShortLink", action = "Index", name = UrlParameter.Optional },
    namespaces: new[] { "**********.Web.Controllers" }
);

routes.MapRoute(
    name: "Basic",
    url: "{controller}/{action}/{id}",
    defaults: new { controller = "Home", id = UrlParameter.Optional },
    namespaces: new[] { "**********.Web.Controllers" }
);

Then in your ShortLinkController controller, redirect like this,

return Redirect("Application/Index#/users");

I hope this helps.

Answer

Hi,

AbpPermissions table contains TenantId field. It will be filled for tenants, it's only null for host.

TenantId field is checked by dynamic filters, you dont have to worry about it. If you want to saerch users by their permisison, it's a bit complicated query, we have done it in the latest release of AspNet Zero (v1.11.0).

You need to join your query with RolePermissionSetting, UserPermissionSetting and UserRole. Then you need to check respectively if a permission is granted to user in UserPermissionSetting, RolePermissionSetting or by default.

I hope this helps you. As I said it's a bit compicated.

Hi,

Have you solved your problem ? It might be related to azure security settings. Maybe you need to allow access of smpt ports on your azure server.

Hi,

I didn't use this plugin before but as I checked from metronic sample page, you should use these css files.

public const string Ion_RangeSlider = "~/libs/ion-rangeslider/css/ion.rangeSlider.css"; public const string Ion_RangeSlider_Nice = "~/libs/ion-rangeslider/css/ion.rangeSlider.skinNice.css";

You can change "ion.rangeSlider.skinNice.css" to any other css file like skinFlat or skinModern but ion.rangeSlider.css must be used.

Then, in the modal dialog you just need to inject $timeout

'$scope', '$uibModalInstance', '$timeout', .....,
        function ($scope, $uibModalInstance, $timeout, ...) {

Then, in the init function, run your ion slider code like this,

$timeout(function () {
    $("#range_id").ionRangeSlider();
}, 0);

Since you are running jquery code in angular, you just need to wait a little to catch the dom object.

I hope this helps,

Answer

Hi,

Defininig the menu item in MpaNavigationProvider should be enough. Can you share your definition ?

Hi,

You can use IocManager.Instance.Resolve<>() in your case. Initial project template injects AbpSession like this,

public abstract class MyCompanyWebViewPageBase<TModel> : AbpWebViewPage<TModel>
{
    public IAbpSession AbpSession { get; private set; }
    
    protected MyCompanyWebViewPageBase()
    {
        AbpSession = IocManager.Instance.Resolve<IAbpSession>();
        LocalizationSourceName = ChatTesterConsts.LocalizationSourceName;
    }
}

Hi,

Thank you for informing us. We will fix it on the next release, please follow this issue <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/289">https://github.com/aspnetzero/aspnet-zero/issues/289</a>

Hi,

Which version of ABP do you use ? I remember a similar issue in the one of previous versions.

Showing 12441 to 12450 of 12723 entries