London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Using visitor groups for Logged-in users

Vote:
 

Out of the box, is there a way to use visitor groups to check logged-in and not logged-in users?

On a page, I want to display "text1" for logged-in users and "text2" for not logged-in users.

Is it possible?

#54862
Nov 07, 2011 23:21
Vote:
 

Just use PrincipalInfo.CurrentPrincipal.Identity.IsAuthenticated.  This returns a boolean

#54871
Nov 08, 2011 2:42
Vote:
 

Use the Role criterion from http://criteriapack.codeplex.com/

#54873
Nov 08, 2011 7:35
Vote:
 

"Use the Role criterion from http://criteriapack.codeplex.com/"

Awesome!

#54957
Nov 10, 2011 23:49
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.