Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init data not save organizations.accountItems/users.properties to database #2885

Closed
MyColorfulDays opened this issue Apr 20, 2024 · 2 comments · Fixed by #2886
Closed

Init data not save organizations.accountItems/users.properties to database #2885

MyColorfulDays opened this issue Apr 20, 2024 · 2 comments · Fixed by #2886
Assignees
Labels
bug Something isn't working

Comments

@MyColorfulDays
Copy link
Contributor

When the init_data.json define the organizations.accountItems/users.properties, the value of it not be saved in database.

{
    "organizations": [
        {
            "owner": "admin",
            "name": "org-test",
            "displayName": "org-test",
            "websiteUrl": "",
            "favicon": "",
            "passwordType": "plain",
            "passwordSalt": "",
            "passwordOptions": [
                "AtLeast6"
            ],
            "countryCodes": [
                "US",
                "CN"
            ],
            "defaultAvatar": "",
            "defaultApplication": "",
            "tags": [],
            "languages": [
                "en",
                "zh"
            ],
            "masterPassword": "",
            "defaultPassword": "",
            "initScore": 2000,
            "enableSoftDeletion": false,
            "isProfilePublic": true,
            "accountItems": [
                {
                    "name": "Properties",
                    "visible": true,
                    "viewRule": "Admin",
                    "modifyRule": "Admin"
                }
            ]
        }
    ],
    "users": [
        {
            "owner": "org-test",
            "name": "admin",
            "type": "normal-user",
            "password": "123456",
            "displayName": "Admin",
            "avatar": "",
            "email": "test@test.localhost",
            "phone": "",
            "countryCode": "",
            "address": [],
            "affiliation": "",
            "tag": "",
            "score": 2000,
            "ranking": 1,
            "isAdmin": true,
            "isForbidden": false,
            "isDeleted": false,
            "signupApplication": "",
            "createdIp": "",
            "groups": [],
            "properties": {
                "key": "value"
            }
        }
    ]
}
@casbin-bot
Copy link
Contributor

@casbin-bot casbin-bot added the enhancement New feature or request label Apr 20, 2024
MyColorfulDays added a commit to MyColorfulDays/casdoor that referenced this issue Apr 20, 2024
@MyColorfulDays
Copy link
Contributor Author

Hi @hsluoyz
I made a pull request and I hope you can accept it.
#2886

@hsluoyz hsluoyz added bug Something isn't working and removed enhancement New feature or request labels Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants