In 2SXC, I have a content type and a razor template. In the template, I want to show some content if the user is unauthenticated (not logged in) and then show something else if they are. How would I write this if statement?
if (Request.IsAuthenticated) {
you're logged in
}
else {
you're not logged in
}
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more