Skip to content

feat: add invitation&invitationCode properties in User class #97

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

Merged
merged 1 commit into from
Jul 8, 2025

Conversation

Corgi14
Copy link
Contributor

@Corgi14 Corgi14 commented Jul 8, 2025

Fix: #96

Summary

This pull request adds two missing fields, invitation and invitationCode, to the User class in the Casdoor Python SDK.

These fields are present in the /api/get-user RESTful API response but were not previously defined in the SDK's User object, resulting in potential AttributeError when accessed in downstream applications.

Changes

  • Modified the User class to include:
self.invitation = ""
self.invitationCode = ""

@Corgi14 Corgi14 changed the title add invitation&invitationCode properties in User class. feat: add invitation&invitationCode properties in User class Jul 8, 2025
@Corgi14 Corgi14 force-pushed the add-missing-properties-in-user branch from 7bc3c6c to 7e66651 Compare July 8, 2025 03:33
@hsluoyz hsluoyz merged commit 46c106e into casdoor:master Jul 8, 2025
3 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 8, 2025
# [1.30.0](v1.29.0...v1.30.0) (2025-07-08)

### Features

* add invitation&invitationCode properties in User class ([#97](#97)) ([46c106e](46c106e))
Copy link

github-actions bot commented Jul 8, 2025

🎉 This PR is included in version 1.30.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Corgi14 Corgi14 deleted the add-missing-properties-in-user branch July 9, 2025 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

casdoor.get_user() returns object without expected attributes like invitation and invitationCode
2 participants