asp.net check Context.User confirmed

29 Views Asked by At

The project is C# asp.net 4.5 (not MVC).

When in my master page, or an aspx/ascx page, you can tell if a user is in a role:

<% if(Context.User.IsInRole("the role to check")) { blaw blaw } %>

Is there a similar way to check if a user has 'confirmed' their account? Something like

<% if(Context.User.IsConfirmed()) { blaw blaw } %>

Do I just need to derive my own IPrincipal based class?

0

There are 0 best solutions below