mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 10:45:47 +08:00
Improve init_data json
This commit is contained in:
parent
1ae6adff8e
commit
46f090361e
@ -6,10 +6,18 @@
|
|||||||
"displayName": "",
|
"displayName": "",
|
||||||
"websiteUrl": "",
|
"websiteUrl": "",
|
||||||
"favicon": "",
|
"favicon": "",
|
||||||
"passwordType": "",
|
"passwordType": "plain",
|
||||||
"countryCodes": [""],
|
"passwordSalt": "",
|
||||||
|
"countryCodes": ["US", "ES", "CN", "FR", "DE", "GB", "JP", "KR", "VN", "ID", "SG", "IN"],
|
||||||
"defaultAvatar": "",
|
"defaultAvatar": "",
|
||||||
"tags": [""]
|
"defaultApplication": "",
|
||||||
|
"tags": [],
|
||||||
|
"languages": ["en", "zh", "es", "fr", "de", "ja", "ko", "ru", "vi"],
|
||||||
|
"masterPassword": "",
|
||||||
|
"initScore": 2000,
|
||||||
|
"enableSoftDeletion": false,
|
||||||
|
"isProfilePublic": true,
|
||||||
|
"accountItems": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"applications": [
|
"applications": [
|
||||||
|
@ -79,19 +79,21 @@ func initBuiltInOrganization() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
organization = &Organization{
|
organization = &Organization{
|
||||||
Owner: "admin",
|
Owner: "admin",
|
||||||
Name: "built-in",
|
Name: "built-in",
|
||||||
CreatedTime: util.GetCurrentTime(),
|
CreatedTime: util.GetCurrentTime(),
|
||||||
DisplayName: "Built-in Organization",
|
DisplayName: "Built-in Organization",
|
||||||
WebsiteUrl: "https://example.com",
|
WebsiteUrl: "https://example.com",
|
||||||
Favicon: fmt.Sprintf("%s/img/casbin/favicon.ico", conf.GetConfigString("staticBaseUrl")),
|
Favicon: fmt.Sprintf("%s/img/casbin/favicon.ico", conf.GetConfigString("staticBaseUrl")),
|
||||||
PasswordType: "plain",
|
PasswordType: "plain",
|
||||||
CountryCodes: []string{"CN"},
|
CountryCodes: []string{"US", "ES", "CN", "FR", "DE", "GB", "JP", "KR", "VN", "ID", "SG", "IN"},
|
||||||
DefaultAvatar: fmt.Sprintf("%s/img/casbin.svg", conf.GetConfigString("staticBaseUrl")),
|
DefaultAvatar: fmt.Sprintf("%s/img/casbin.svg", conf.GetConfigString("staticBaseUrl")),
|
||||||
Tags: []string{},
|
Tags: []string{},
|
||||||
Languages: []string{"en", "zh", "es", "fr", "de", "ja", "ko", "ru", "vi"},
|
Languages: []string{"en", "zh", "es", "fr", "de", "ja", "ko", "ru", "vi"},
|
||||||
InitScore: 2000,
|
InitScore: 2000,
|
||||||
AccountItems: getBuiltInAccountItems(),
|
AccountItems: getBuiltInAccountItems(),
|
||||||
|
EnableSoftDeletion: false,
|
||||||
|
IsProfilePublic: false,
|
||||||
}
|
}
|
||||||
AddOrganization(organization)
|
AddOrganization(organization)
|
||||||
return false
|
return false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user