Activities of "liangshiwei"

Hi,

Could you share the full steps or a simple example project with me? I will check it. thanks. my email is shiwei.liang@volosoft.com

Hi,

Yes, you can override the registermodel.

For example:

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(RegisterModel))]
public class MyRegisterModel : RegisterModel
{
    public MyRegisterModel(IAuthenticationSchemeProvider schemeProvider, IOptions<AbpAccountOptions> accountOptions, IAccountExternalProviderAppService accountExternalProviderAppService, ICurrentPrincipalAccessor currentPrincipalAccessor, IHttpClientFactory httpClientFactory) : base(schemeProvider, accountOptions, accountExternalProviderAppService, currentPrincipalAccessor, httpClientFactory)
    {
    }

    public override async Task<IActionResult> OnGetAsync()
    {
        ExternalProviders = await GetExternalProviders();

        if (IsExternalLogin)
        {
            return await AutoRegisterUser();
        }
        
        if (!await CheckSelfRegistrationAsync())
        {
            if (IsExternalLoginOnly)
            {
                return await OnPostExternalLogin(ExternalLoginScheme);
            }

            Alerts.Warning(L["SelfRegistrationDisabledMessage"]);
            return Page();
        }


        await TrySetEmailAsync();
        await SetUseCaptchaAsync();

        return Page();
    }

    private async Task<IActionResult> AutoRegisterUser()
    {
        var externalLoginInfo = await SignInManager.GetExternalLoginInfoAsync();
        if (externalLoginInfo == null)
        {
            Logger.LogWarning("External login info is not available");
            return RedirectToPage("./Login");
        }
        var identity = externalLoginInfo.Principal.Identities.First();
        var emailClaim = identity.FindFirst(AbpClaimTypes.Email) ?? identity.FindFirst(ClaimTypes.Email);

        if (emailClaim == null)
        {
            Logger.LogWarning("Email claim is not available");
            return RedirectToPage("./Login");
        }

        var email = emailClaim.Value;
        var userName = await UserManager.GetUserNameFromEmailAsync(email);
        
        var user = await RegisterExternalUserAsync(externalLoginInfo, email, userName);
        await SignInManager.SignInAsync(user, isPersistent: true, authenticationMethod: ExternalLoginAuthSchema);

        // Clear the dynamic claims cache.
        await IdentityDynamicClaimsPrincipalContributorCache.ClearAsync(user.Id, user.TenantId);
        
        await SignInManager.SignInAsync(user, isPersistent: true);

        // Clear the dynamic claims cache.
        await IdentityDynamicClaimsPrincipalContributorCache.ClearAsync(user.Id, user.TenantId);

        return Redirect(ReturnUrl ?? "/");
    }
}

Could you share some screenshots?

BTW, you can debug the CreateApplicationAsync method

Hi

Sorry, It can't be done without source code at the moment

H,

The Payment Gateway page only supports MVC UI

Does the above sentence refer to the Blazorise DataGrid or to the Mobile Navbar?

It's to Mobile Navbar

Hi,

The #7158 is reopen

I'm closing this. Your ticket was refunded.

Answer

Hi,

Could you explain it in detail?

I will check it. Thanks.

Hi,

Could you share the steps to reproduce? thanks.

You can try configure the appsettings.secrets.json

Showing 1801 to 1810 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.