title: Determine if logged in with username and password or with Facebook in ASP.Net MVC
body: <p>How do I check if I'm logged in with a username/password or with Facebook authentication?</p>
  
  <p>I want to have a condition that says something like</p>
  
  <pre><code>if (loggedInWithUserNamePassword()) {
     // show change password screen
  } else { // logged in with Facebook
    // don't show change password screen
  }
  </code></pre>
  
  <p>I'm looking through "User." and "Request." for options to use but nothing seems like it shows a clear sign that I'm logged in with Facebook or not.</p>