mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
feat: improve default org passwordOptions handling
This commit is contained in:
@ -34,7 +34,7 @@ class OrganizationListPage extends BaseListPage {
|
||||
favicon: `${Setting.StaticBaseUrl}/img/favicon.png`,
|
||||
passwordType: "plain",
|
||||
PasswordSalt: "",
|
||||
passwordOptions: [],
|
||||
passwordOptions: ["AtLeast6"],
|
||||
passwordObfuscatorType: "Plain",
|
||||
passwordObfuscatorKey: "",
|
||||
passwordExpireDays: 0,
|
||||
|
@ -58,7 +58,7 @@ export function checkPasswordComplexity(password, options) {
|
||||
}
|
||||
|
||||
if (!options || options.length === 0) {
|
||||
options = ["AtLeast6"];
|
||||
return "";
|
||||
}
|
||||
|
||||
const checkers = {
|
||||
|
Reference in New Issue
Block a user