Activities of "liangshiwei"

Different values from what

I don't know; that's why I asked you output logger to check it.

you can debug the inintQrCode js method

You can copy the authenticator source code from the settings page to a new page if you want.

Get source code from here https://abp.io/support/questions/8534/2-Factor-Authentication-with-Forced-options---show-authenticator-app-wizard#answer-3a172ed4-c03c-7042-b97c-edf641d389a4

Padding is invalid and cannot be removed. System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed. at System.Security.Cryptography.SymmetricPadding.GetPaddingLength(ReadOnlySpan

This is a problem with your StringEncryption.

They used different values, so setting values could not be decrypted.

You can output the current DefaultPassPhrase via logging to check

public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
    var env = context.GetEnvironment();
    var app = context.GetApplicationBuilder();

    var opt = app.ApplicationServices.GetRequiredService<IOptions<AbpStringEncryptionOptions>>();

    Logger.LogInformation("pass phrase is : " + opt.DefaultPassPhrase);
    .....
}

Yes, you can overwrite them according to your needs.

You can download the account pro module source code using abp suite

:)

Hi,

Try Pages/Account/Components/ProfileManagementGroup/AuthenticatorApp/Default.js

Hi,

You can get it from the browser

for example: https://xxxx/Pages/Account/Components/ProfileManagementGroup/TwoFactor/Default.js

Is there also a possibility to give some information about how can I obtain the TwoFactor option ( Forced / Optional ) from Settings , which can be settled up by admin host account ? ( i try to use ISettingsProvider in overwritten Login.cshtml.cs , to obtain this settings but idk how it is named )

var twoFactorForcedEnabled = await IdentityProTwoFactorManager.IsForcedEnableAsync();
var twoFactorEnabled = await ProfileAppService.GetTwoFactorEnabledAsync();
var tasAuthenticator = await AccountAppService.HasAuthenticatorAsync();
};

Is it possible to attach to the end of the authenticator app configuration process and then for example force user to relogin after he will end the configuration process , and will have to re-authenticate within the configured authenticator app ?

you can override the /Pages/Account/Components/ProfileManagementGroup/TwoFactor/Default.js

Showing 301 to 310 of 6692 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20