Activities of "yasin.hallak.89@gmail.com"

Can you create a template project and add your custom code then share it? liming.ma@volosoft.com

I created new project and remove identityServer it works well .. but in myProject does not work because when I Installed module "Volo.Account" ...it added in all projects and it causes conflict with another modules ... but when i installed in new project just added to newPorject.web proj ..

can you contact me with zoom and see my code and what is problems

The video has an example. Did you check?

https://github.com/antosubash/AuthChange

i chekcd it but there is diffrences ... this project default abp but my project commercial abp ...

Can you share the video url?

https://www.youtube.com/watch?v=6By_lKDyTGg

hi

  • Steps to reproduce the issue:"

I want to remove IdentityServer ....

I watch video for brother Anto Subash and follow all steps ...

finaly gave me this error above

Question
  • ABP Framework version: v5.0.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

Hi there ....

Exception message and stack trace: There is already an existing permission group with name: AbpIdentity

Volo.Abp.Authorization.Permissions.PermissionDefinitionContext.AddGroup(string name, ILocalizableString displayName, MultiTenancySides multiTenancySide) Volo.Abp.Identity.IdentityPermissionDefinitionProvider.Define(IPermissionDefinitionContext context) Volo.Abp.Authorization.Permissions.PermissionDefinitionManager.CreatePermissionGroupDefinitions() System.Lazy<T>.ViaFactory(LazyThreadSafetyMode mode) System.Lazy<T>.ExecutionAndPublication(LazyHelper executionAndPublication, bool useDefaultConstructor) System.Lazy<T>.CreateValue() Volo.Abp.Authorization.Permissions.PermissionDefinitionManager.CreatePermissionDefinitions() System.Lazy<T>.ViaFactory(LazyThreadSafetyMode mode) System.Lazy<T>.CreateValue() Volo.Abp.Authorization.Permissions.PermissionDefinitionManager.get_PermissionDefinitions() Volo.Abp.Authorization.Permissions.PermissionDefinitionManager.GetOrNull(string name) Volo.Abp.Authorization.AbpAuthorizationPolicyProvider.GetPolicyAsync(string policyName) Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, object resource, string policyName) Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, object resource, string policyName) Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.AuthorizeAsync(IAuthorizationService authorizationService, object resource, string policyName) Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.AuthorizeAsync(IAuthorizationService authorizationService, object resource, string policyName) Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.AuthorizeAsync(IAuthorizationService authorizationService, string policyName) Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.AuthorizeAsync(IAuthorizationService authorizationService, string policyName) Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.IsGrantedAsync(IAuthorizationService authorizationService, string policyName) Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.IsGrantedAsync(IAuthorizationService authorizationService, string policyName) Volo.Abp.SettingManagement.Web.Settings.EmailingPageContributor.CheckPermissionsInternalAsync(SettingPageCreationContext context) Volo.Abp.SettingManagement.Web.Settings.EmailingPageContributor.CheckPermissionsAsync(SettingPageCreationContext context) Volo.Abp.SettingManagement.Web.Settings.EmailingPageContributor.CheckPermissionsAsync(SettingPageCreationContext context) Volo.Abp.SettingManagement.Web.Navigation.SettingManagementMainMenuContributor.CheckAnyOfPagePermissionsGranted(SettingManagementPageOptions settingManagementPageOptions, SettingPageCreationContext settingPageCreationContext) Volo.Abp.SettingManagement.Web.Navigation.SettingManagementMainMenuContributor.CheckAnyOfPagePermissionsGranted(SettingManagementPageOptions settingManagementPageOptions, SettingPageCreationContext settingPageCreationContext) Volo.Abp.SettingManagement.Web.Navigation.SettingManagementMainMenuContributor.ConfigureMenuAsync(MenuConfigurationContext context) Volo.Abp.SettingManagement.Web.Navigation.SettingManagementMainMenuContributor.ConfigureMenuAsync(MenuConfigurationContext context) Volo.Abp.UI.Navigation.MenuManager.GetInternalAsync(string name) Volo.Abp.UI.Navigation.MenuManager.GetInternalAsync(string name) Volo.Abp.UI.Navigation.MenuManager.GetAsync(string[] menuNames) Volo.Abp.UI.Navigation.MenuManager.GetAsync(string[] menuNames) Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton.Themes.Lepton.Components.MainMenu.MainMenuViewComponent.InvokeAsync() Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton.Themes.Lepton.Components.MainMenu.MainMenuViewComponent.InvokeAsync() Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, object component, ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, object component, ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, object arguments) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, object arguments) Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpViewComponentHelper.InvokeAsync(Type componentType, object arguments) Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpViewComponentHelper.InvokeAsync(Type componentType, object arguments) dfhdJGWM2KJdDXIU2aK.lCr3DpW4Zr8qhRYeKd7.ExecuteAsync() dfhdJGWM2KJdDXIU2aK.lCr3DpW4Zr8qhRYeKd7.ExecuteAsync() Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context) Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context) Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, bool invokeViewStarts) Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, bool invokeViewStarts) Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context) Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context) Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult.ExecuteAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult.ExecuteAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, object arguments) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, object arguments)

Hi,

Can you try this:

protected IOptions<IdentityOptions> IdentityOptions { get; } 
 
public xxx(IOptions<IdentityOptions> identityOptions) 
{ 
   IdentityOptions = identityOptions; 
} 
 
public virtual async Task CreateAsync(EmployeeCreateDto input) 
{ 
    await IdentityOptions.SetAsync(); // this line 
    
    var email = input.Email ?? $"{input.IdentityNo}@gmail.com"; 
 
    var user = new IdentityUser(Guid.NewGuid(), input.IdentityNo, email, CurrentTenant.Id); 
    user.Surname = input.Name; 
    var result = await _userManager.CreateAsync(user, "123456"); 
    if (!result.Succeeded) 
    { 
        throw new UserFriendlyException(@L["Validation:ErrorInServer"]); 
    } 
 
    var employee = ObjectMapper.Map(input); 
    employee.TenantId = CurrentTenant.Id; 
    employee.AppUserId = user.Id; 
    employee.BirthDate = input.BirthDate.ToDate().Value; 
    employee.IdentityDate=input.IdentityDate.ToDate().Value;     
    employee = await _employeeRepository.InsertAsync(employee, autoSave: true); 
    return ObjectMapper.Map(employee); 
} 

thank a lot it works well ...

I will repeat reproduce my problem

I want to create user and take Id and use it in my entity Employee as below :

public virtual async Task<EmployeeDto> CreateAsync(EmployeeCreateDto input)
{
   
    var email = input.Email ?? $"{input.IdentityNo}@gmail.com";

    var user = new IdentityUser(Guid.NewGuid(), input.IdentityNo, email, CurrentTenant.Id);
    user.Surname = input.Name;
    var result = await _userManager.CreateAsync(user, "123456");
    if (!result.Succeeded)
    {
        throw new UserFriendlyException(@L["Validation:ErrorInServer"]);
    }

    var employee = ObjectMapper.Map<EmployeeCreateDto, Employee>(input);
    employee.TenantId = CurrentTenant.Id;
    employee.AppUserId = user.Id;
    employee.BirthDate = input.BirthDate.ToDate().Value;
    employee.IdentityDate=input.IdentityDate.ToDate().Value;    
    employee = await _employeeRepository.InsertAsync(employee, autoSave: true);
    return ObjectMapper.Map<Employee, EmployeeDto>(employee);
}

I set password digit only and set in password setting "Required Digit Only " as below :

it does not work and give me error as below :

I hope to be reproduce my problem well .. thanks

I could not reproduce the problem

Can you provide steps that I can reproduce the problem? thanks.

I wrote above steps for my problem .. I need to create user from code and set passwrod only digit as figure above

Sorry, my bad, I thought you were using version 5.3.0, let me check it.

I am sorry my bad ..not your bad ... I was writing V 5.3.0

Hi,

We had this problem on 5.3.0, it was fixed in 5.3.1, can you upgrade to 5.3.1 and try again?

Sorry Now I use V5.0.0 Not V5.3.0 ... Can you give me principled solution for now because I use Multi Module for bussinses .and I must to upgrade all of them

Showing 71 to 80 of 111 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 05:21