Browse Source
Add password history validation message
pull/23907/head
maliming
1 year ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
2 additions and
0 deletions
-
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["InvalidUserName"] = "Username '{0}' is invalid."; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
IdentityStrings["PasswordInHistory"] = "Passwords must not match your last {0} passwords."; |
|
|
|
|
|
|
|
|
if (!IdentityStrings.Any()) |
|
|
if (!IdentityStrings.Any()) |
|
|
{ |
|
|
{ |
|
|
throw new AbpException("ResourceSet values of Identity is empty."); |
|
|
throw new AbpException("ResourceSet values of Identity is empty."); |
|
|
|