Browse Source

Add password history validation message

pull/23907/head
maliming 4 months ago
parent
commit
ecee36baef
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 2
      modules/identity/src/Volo.Abp.Identity.Domain/Microsoft/AspNetCore/Identity/AbpIdentityResultExtensions.cs

2
modules/identity/src/Volo.Abp.Identity.Domain/Microsoft/AspNetCore/Identity/AbpIdentityResultExtensions.cs

@ -45,6 +45,8 @@ public static class AbpIdentityResultExtensions
IdentityStrings["InvalidUserName"] = "Username '{0}' is invalid.";
}
IdentityStrings["PasswordInHistory"] = "Passwords must not match your last {0} passwords.";
if (!IdentityStrings.Any())
{
throw new AbpException("ResourceSet values of Identity is empty.");

Loading…
Cancel
Save