Skip to content

Instantly share code, notes, and snippets.

@scottsauber
Created December 23, 2016 17:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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