Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Reset Password on Angular #6015


User avatar
0
tugrulkarakaya created

Change PAssword setting for tenants on settign area (forexample 3 mandatory character) create new tenant assign random password and set change password at the next login password ruels does not work at that screen to change the password. but that rules suceessfulyl works on change my password. that rules should work on both screen


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @tugrulkarakaya

    I have created an issue https://github.com/aspnetzero/aspnet-zero-core/issues/1955

  • User Avatar
    0
    aaron created
    Support Team

    Hi tugrulkarakaya, which version are you on?

  • User Avatar
    0
    tugrulkarakaya created

    6.0.0.0

  • User Avatar
    0
    aaron created
    Support Team

    Should be fixed in v6.1.

    public async Task<ResetPasswordOutput> ResetPassword(ResetPasswordInput input)
    {
        ...
    
        await UserManager.InitializeOptionsAsync(AbpSession.TenantId); // This was added
        CheckErrors(await UserManager.ChangePasswordAsync(user, input.Password));
        ...
    }