Skip to content

Instantly share code, notes, and snippets.

@scottsauber
Created December 23, 2016 17:10
Show Gist options
  • Save scottsauber/abcbe4311e1ae58c8b9fa16a2f283a17 to your computer and use it in GitHub Desktop.
Save scottsauber/abcbe4311e1ae58c8b9fa16a2f283a17 to your computer and use it in GitHub Desktop.
@if (User.Identity.IsAuthenticated)
{
<div>
This should only be visible if you're logged in
</div>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment