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

custom attributes for the user table #2803

Closed
waffle-frame opened this issue Mar 14, 2024 · 4 comments
Closed

custom attributes for the user table #2803

waffle-frame opened this issue Mar 14, 2024 · 4 comments
Assignees
Labels
wontfix This will not be worked on

Comments

@waffle-frame
Copy link
Contributor

Hello.

The other day I needed to add some new fields for a user and store them in a token during login.

I haven't found a way to do this.
There are plans to implement this, I need advice on how necessary this will be

@casbin-bot
Copy link
Contributor

@casbin-bot casbin-bot added the enhancement New feature or request label Mar 14, 2024
@hsluoyz
Copy link
Member

hsluoyz commented Mar 15, 2024

@waffle-frame modify the code to add new fields to the User struct. Or add to the properties of the User:

Properties map[string]string `json:"properties"`

@hsluoyz hsluoyz closed this as completed Mar 15, 2024
@hsluoyz hsluoyz added question Further information is requested and removed enhancement New feature or request labels Mar 15, 2024
@waffle-frame
Copy link
Contributor Author

waffle-frame commented Mar 15, 2024

@hsluoyz

Tell me where I can see this on the admin page?

P.S
I looked at your recommendation and realized that the properties will not be saved, since even the xorm is not specified in the tag

@hsluoyz hsluoyz reopened this Mar 15, 2024
@hsluoyz
Copy link
Member

hsluoyz commented Mar 15, 2024

@waffle-frame not planned for now. Too tedious to support this. Just modify the code by yourself, it's much easier

@hsluoyz hsluoyz closed this as completed Mar 15, 2024
@hsluoyz hsluoyz added wontfix This will not be worked on and removed question Further information is requested labels Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants