-
In Orchard CMS (V.1) a user is a content item: However in Orchard Core CMS (V.2), it has been changed to an Entity which is not a content item: For curiosity, would it be possible to let me know a system design behind this implementation and a reason that not make a user as a content item? I think making a user as a content type has some benefit e.g. we can use an existing content item infrastructure for a user. Thank you so much. CC @Skrypt |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
A Content-Type is mutable from runtime which is not that great for security purposes. This PR extends the IUser with an IProfile entity that can be used for FrontEnd users. Now, if you want to extend an IUser from runtime you can also use the UserContentPicker on a Content-Type to link them together.
|
Beta Was this translation helpful? Give feedback.
A Content-Type is mutable from runtime which is not that great for security purposes.
There are examples of how to extend the current IUser interface for your own usage which I think makes more sense.
You are not the first one to ask this question. Take a look at this Pull Request for example
#3141
This PR extends the IUser with an IProfile entity that can be used for FrontEnd users.
It is not even extending the IUser directly. It just adds an IProfile that links to the IUser.
Now, if you want to extend an IUser from runtime you can also use the UserContentPicker on a Content-Type to link them together.
You can also create a driver that will extend the current User editing admin UI.
There…