Custom user data


#1

Hi,

How can I add & store a custom field in User model, in addition to email, password, and username? Which parts should I modify & extend so that this custom field is editable from “My Profile” like username?

Thanks,
Abigail


#2

Hi Abigail! You can extend the User model via metadata tags. You can reference this plugin here, which extends the User model to have a “subscriber” tag - https://github.com/coralproject/talk-recipes/tree/master/plugins/subscriber

So in this case, users who are noted as a Subscriber in the database, will reflect this tag.


#3

Thanks! The linked plugin seems to read in tags and create components accordingly, but I’m still not sure how I can first add “subscriber” information in the user database. Could you give me more information on how to modify and update User data?


#4

Can you explain more what your goal is on what you’re trying to do? That way hopefully I can point you more in the right direction!