"kapil" की गतिविधियाँ

उत्तर

Ok thanks its working fine.

how to config redis in project

उत्तर

ok I will Check

उत्तर

if the role is inactive then the permission will not be displayed . how to config that and where the logic should be implemented.

उत्तर

if the role is activate or deactivate then what about the claims/Permission assigned to that role.

उत्तर

AllowedUserNameCharacters

thanks for the help i use AllowedUserNameCharacters to solve the error. thank you.

उत्तर

Is theexternalUser null?

If your system username must contain spaces, you can override IUserValidator<TUser> or add space to AllowedUserNameCharacters

externalUser

उत्तर
public override async Task<Volo.Abp.Identity.IdentityUser> CreateUserAsync(string userName, string providerName)
{
    await IdentityOptions.SetAsync();

    var externalUser = await GetUserInfoAsync(userName);
    NormalizeExternalLoginUserInfo(externalUser, userName);

    var user = new Volo.Abp.Identity.IdentityUser(
        GuidGenerator.Create(),
        userName,
        externalUser.Email,
        tenantId: CurrentTenant.Id
    );

    user.Name = externalUser.Name;
    user.Surname = externalUser.Surname;

    user.IsExternal = true;

    user.SetEmailConfirmed(externalUser.EmailConfirmed ?? false);
    user.SetPhoneNumber(externalUser.PhoneNumber, externalUser.PhoneNumberConfirmed ?? false);

    (await UserManager.CreateAsync(user)).CheckErrors();

    if (externalUser.TwoFactorEnabled != null)
    {
        (await UserManager.SetTwoFactorEnabledAsync(user, externalUser.TwoFactorEnabled.Value)).CheckErrors();
    }

    (await UserManager.AddDefaultRolesAsync(user)).CheckErrors();
    (await UserManager.AddLoginAsync(
                user,
                new UserLoginInfo(
                    providerName,
                    externalUser.ProviderKey,
                    providerName
                )
            )
        ).CheckErrors();

    return user;
}
उत्तर

but in "cn" attribue have space how i can remove.

Can you share more details?

if i removed space from username then following error occured

Did you add any custom code?

which type of details you need?

Yes,i added the code for CreateUserAsync.

उत्तर

but in "cn" attribue have space how i can remove.

Can you share more details?

If your system username must contain spaces, you can override IUserValidator<TUser> or add space to AllowedUserNameCharacters if i removed space from username then following error occured

48 प्रविष्टियों में 21 से 30 दिखा रहा है
Made with ❤️ on ABP v8.2.0-preview Updated on मार्च 25, 2024, 15:11