Posted on 09/04/2021 13:00:13
No, but it is a simple piece of code in a razor template:
I.e. on the user profile page, do a link something like this: <a href="/Default.aspx?id=123&cmd=deleteuser">Delete account</a>
And in the profile template something like this:
if (Dynamicweb.Context.Current.Request.QueryString["cmd"] == "deleteuser")
{
var idOfUserToDelete = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUserId();
Dynamicweb.Security.UserManagement.User.Delete(idOfUserToDelete);
Dynamicweb.Frontend.LogOnHandler.LogOff();
}