mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00

* Support uploading roles and permissions via xlsx file. * Template xlsx file for uploading users and permissions. * reformat according to gofumpt. * fix typo. * add password complexity options to organization edit page. * add password complexity options to organization edit page. * Fixed Typos. * Fixed Typos. * feat:add password complexity options to organization edit page * Auto generate i18n fields. * Refactor code according to instructions * Support autocheck passwd complexity in frontend when setting passwd in user edit page. * feat:Backend Support for password validation in signup and forget page. * feat:Frontend Support for password validation in signup and forget page. * Add default password complex option & Update historical empty filed with default option. * Migrator for field `password_complex_options` in org table. * feat: support frontend password complex option check in user_edit/forget/signup page. * frontend update for user edit page * update i18n file --------- Co-authored-by: hsluoyz <hsluoyz@qq.com>
353 lines
6.7 KiB
Plaintext
353 lines
6.7 KiB
Plaintext
{
|
|
"organizations": [
|
|
{
|
|
"owner": "",
|
|
"name": "",
|
|
"displayName": "",
|
|
"websiteUrl": "",
|
|
"favicon": "",
|
|
"passwordType": "plain",
|
|
"passwordSalt": "",
|
|
"passwordOptions": ["AtLeast6"],
|
|
"countryCodes": ["US", "ES", "CN", "FR", "DE", "GB", "JP", "KR", "VN", "ID", "SG", "IN"],
|
|
"defaultAvatar": "",
|
|
"defaultApplication": "",
|
|
"tags": [],
|
|
"languages": ["en", "zh", "es", "fr", "de", "id", "ja", "ko", "ru", "vi"],
|
|
"masterPassword": "",
|
|
"initScore": 2000,
|
|
"enableSoftDeletion": false,
|
|
"isProfilePublic": true,
|
|
"accountItems": []
|
|
}
|
|
],
|
|
"applications": [
|
|
{
|
|
"owner": "",
|
|
"name": "",
|
|
"displayName": "",
|
|
"logo": "",
|
|
"homepageUrl": "",
|
|
"organization": "",
|
|
"cert": "",
|
|
"enablePassword": true,
|
|
"enableSignUp": true,
|
|
"clientId": "",
|
|
"clientSecret": "",
|
|
"providers": [
|
|
{
|
|
"name": "",
|
|
"canSignUp": true,
|
|
"canSignIn": true,
|
|
"canUnlink": false,
|
|
"prompted": false,
|
|
"alertType": "None"
|
|
}
|
|
],
|
|
"signupItems": [
|
|
{
|
|
"name": "ID",
|
|
"visible": false,
|
|
"required": true,
|
|
"prompted": false,
|
|
"rule": "Random"
|
|
},
|
|
{
|
|
"name": "Username",
|
|
"visible": true,
|
|
"required": true,
|
|
"prompted": false,
|
|
"rule": "None"
|
|
},
|
|
{
|
|
"name": "Display name",
|
|
"visible": true,
|
|
"required": true,
|
|
"prompted": false,
|
|
"rule": "None"
|
|
},
|
|
{
|
|
"name": "Password",
|
|
"visible": true,
|
|
"required": true,
|
|
"prompted": false,
|
|
"rule": "None"
|
|
},
|
|
{
|
|
"name": "Confirm password",
|
|
"visible": true,
|
|
"required": true,
|
|
"prompted": false,
|
|
"rule": "None"
|
|
},
|
|
{
|
|
"name": "Email",
|
|
"visible": true,
|
|
"required": true,
|
|
"prompted": false,
|
|
"rule": "None"
|
|
},
|
|
{
|
|
"name": "Phone",
|
|
"visible": true,
|
|
"required": true,
|
|
"prompted": false,
|
|
"rule": "None"
|
|
},
|
|
{
|
|
"name": "Agreement",
|
|
"visible": true,
|
|
"required": true,
|
|
"prompted": false,
|
|
"rule": "None"
|
|
}
|
|
],
|
|
"redirectUris": [""],
|
|
"expireInHours": 168
|
|
}
|
|
],
|
|
"users": [
|
|
{
|
|
"owner": "",
|
|
"name": "",
|
|
"type": "normal-user",
|
|
"password": "",
|
|
"displayName": "",
|
|
"avatar": "",
|
|
"email": "",
|
|
"phone": "",
|
|
"countryCode": "",
|
|
"address": [],
|
|
"affiliation": "",
|
|
"tag": "",
|
|
"score": 2000,
|
|
"ranking": 1,
|
|
"isAdmin": true,
|
|
"isGlobalAdmin": true,
|
|
"isForbidden": false,
|
|
"isDeleted": false,
|
|
"signupApplication": "",
|
|
"createdIp": ""
|
|
}
|
|
],
|
|
"providers": [
|
|
{
|
|
"owner": "",
|
|
"name": "",
|
|
"displayName": "",
|
|
"category": "",
|
|
"type": ""
|
|
}
|
|
],
|
|
"certs": [
|
|
{
|
|
"owner": "",
|
|
"name": "",
|
|
"displayName": "",
|
|
"scope": "JWT",
|
|
"type": "x509",
|
|
"cryptoAlgorithm": "RS256",
|
|
"bitSize": 4096,
|
|
"expireInYears": 20,
|
|
"certificate": "",
|
|
"privateKey": ""
|
|
}
|
|
],
|
|
"ldaps": [
|
|
{
|
|
"id": "",
|
|
"owner": "",
|
|
"serverName": "",
|
|
"host": "",
|
|
"port": 389,
|
|
"username": "",
|
|
"password": "",
|
|
"baseDn": "",
|
|
"autoSync": 0,
|
|
"lastSync": ""
|
|
}
|
|
],
|
|
"models": [
|
|
{
|
|
"owner": "",
|
|
"name": "",
|
|
"modelText": "",
|
|
"displayName": ""
|
|
}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"actions": [
|
|
""
|
|
],
|
|
"displayName": "",
|
|
"effect": "",
|
|
"isEnabled": true,
|
|
"model": "",
|
|
"name": "",
|
|
"owner": "",
|
|
"resourceType": "",
|
|
"resources": [
|
|
""
|
|
],
|
|
"roles": [
|
|
""
|
|
],
|
|
"users": [
|
|
""
|
|
]
|
|
}
|
|
],
|
|
"payments": [
|
|
{
|
|
"currency": "",
|
|
"detail": "",
|
|
"displayName": "",
|
|
"invoiceRemark": "",
|
|
"invoiceTaxId": "",
|
|
"invoiceTitle": "",
|
|
"invoiceType": "",
|
|
"invoiceUrl": "",
|
|
"message": "",
|
|
"name": "",
|
|
"organization": "",
|
|
"owner": "",
|
|
"payUrl": "",
|
|
"personEmail": "",
|
|
"personIdCard": "",
|
|
"personName": "",
|
|
"personPhone": "",
|
|
"price": 0,
|
|
"productDisplayName": "",
|
|
"productName": "",
|
|
"provider": "",
|
|
"returnUrl": "",
|
|
"state": "",
|
|
"tag": "",
|
|
"type": "",
|
|
"user": ""
|
|
}
|
|
],
|
|
"products": [
|
|
{
|
|
"currency": "",
|
|
"detail": "",
|
|
"displayName": "",
|
|
"image": "",
|
|
"name": "",
|
|
"owner": "",
|
|
"price": 0,
|
|
"providers": [
|
|
""
|
|
],
|
|
"quantity": 0,
|
|
"returnUrl": "",
|
|
"sold": 0,
|
|
"state": "",
|
|
"tag": ""
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"owner": "",
|
|
"name": "",
|
|
"user": "",
|
|
"provider": "",
|
|
"application": "",
|
|
"tag": "",
|
|
"parent": "",
|
|
"fileName": "",
|
|
"fileType": "",
|
|
"fileFormat": "",
|
|
"url": "",
|
|
"description": ""
|
|
}
|
|
],
|
|
"roles": [
|
|
{
|
|
"displayName": "",
|
|
"isEnabled": true,
|
|
"name": "",
|
|
"owner": "",
|
|
"roles": [
|
|
""
|
|
],
|
|
"users": [
|
|
""
|
|
]
|
|
}
|
|
],
|
|
"syncers": [
|
|
{
|
|
"affiliationTable": "",
|
|
"avatarBaseUrl": "",
|
|
"database": "",
|
|
"databaseType": "",
|
|
"errorText": "",
|
|
"host": "",
|
|
"isEnabled": true,
|
|
"name": "",
|
|
"organization": "",
|
|
"owner": "",
|
|
"password": "",
|
|
"port": 0,
|
|
"syncInterval": 0,
|
|
"table": "",
|
|
"tableColumns": [
|
|
{
|
|
"casdoorName": "",
|
|
"isHashed": true,
|
|
"name": "",
|
|
"type": "",
|
|
"values": [
|
|
""
|
|
]
|
|
}
|
|
],
|
|
"tablePrimaryKey": "",
|
|
"type": "",
|
|
"user": ""
|
|
}
|
|
],
|
|
"tokens": [
|
|
{
|
|
"accessToken": "",
|
|
"application": "",
|
|
"code": "",
|
|
"codeChallenge": "",
|
|
"codeExpireIn": 0,
|
|
"codeIsUsed": true,
|
|
"createdTime": "",
|
|
"expiresIn": 0,
|
|
"name": "",
|
|
"organization": "",
|
|
"owner": "",
|
|
"refreshToken": "",
|
|
"scope": "",
|
|
"tokenType": "",
|
|
"user": ""
|
|
}
|
|
],
|
|
"webhooks": [
|
|
{
|
|
"contentType": "",
|
|
"events": [
|
|
""
|
|
],
|
|
"headers": [
|
|
{
|
|
"name": "",
|
|
"value": ""
|
|
}
|
|
],
|
|
"isEnabled": true,
|
|
"isUserExtended": true,
|
|
"method": "",
|
|
"name": "",
|
|
"organization": "",
|
|
"owner": "",
|
|
"url": ""
|
|
}
|
|
]
|
|
}
|