How to Create User profiles in Sitecore Programati

2019-04-08 12:32发布

I want to functionality functionality of signup for sitecore website. I want to add sitecore users/user profiles dynamically.

If anyone can help me, it would be highly appriciated.

1条回答
Lonely孤独者°
2楼-- · 2019-04-08 12:57

Sitecore uses the standard ASP.NET Membership provider for its users so you can create users with basic ASP.NET calls..

userName = string.Format(@"{0}\{1}", domain, userName);
Membership.CreateUser(userName, password, email);

domain variable would be sitecore or extranet.

Karina Apostolides has a collection of useful membership functions available here: Programmatically Add & Edit Users

查看更多
登录 后发表回答