To check if a user exist in the Umbraco membership section, we use the ASP.NET Membership API.
[csharp]
var userName = "myUserName";
var memberExist = false;
if(Membership.GetUser(userName) != null)
{
memberExist = true;
}
[/csharp]
Web development and technologies | egeek
ASP.NET, C#, Azure, SQL, Server, Umbraco, Sitecore, Git and other stuff I find useful
To check if a user exist in the Umbraco membership section, we use the ASP.NET Membership API.
[csharp]
var userName = "myUserName";
var memberExist = false;
if(Membership.GetUser(userName) != null)
{
memberExist = true;
}
[/csharp]