I’m creating a documentation site where users will be able to add new article. At first, the site will be anonymous but I’d like to be able to give visitors the possibility to vote or add comments on the doc.
This site will be deployed like an internal site only available for the company I’m working for. Therefore, readers and writers can basically be anyone. Therefore, I would like that a writer could also add a comment or like a documentation page and his comment would appear with his name.
So basically, I would like to use a back office users also as a member, is it possible ? It would be a shame to be forced to have two different accounts for the same site.
Can I used a back office user on my web site?
Hi,
I’m creating a documentation site where users will be able to add new article. At first, the site will be anonymous but I’d like to be able to give visitors the possibility to vote or add comments on the doc.
This site will be deployed like an internal site only available for the company I’m working for. Therefore, readers and writers can basically be anyone. Therefore, I would like that a writer could also add a comment or like a documentation page and his comment would appear with his name.
So basically, I would like to use a back office users also as a member, is it possible ? It would be a shame to be forced to have two different accounts for the same site.
I wouldn't use a (backoffice) user as a member, these are 2 separate entities with different goals.
What you could do, is when a user is saved, create a member and keep it in sync. I have no idea how one would go about keeping the passwords in sync.
On the login controller for the front-end you could check if there is a user logged into the backoffice and then log in the member with the same username. I have no idea what the recommended way is to do this, but you can have a look in this post for more information https://our.umbraco.com/forum/developers/api-questions/50075-how-to-get-the-current-user-with-UserService
To force login a member you will need to implement the following package https://www.nuget.org/packages/UmbracoIdentity.Core/
Again, this is what you could do, I don't know if its the best approach.
is working on a reply...