title: How can I restore Forms Authentication via Web.config in an MVC 5 app using ASP.NET Identity?
body: <p>I'm in the early stages of building an app with MVC 5. I haven't used this version of the framework yet, nor ASP.NET Identity (I'm not even sure if that's relevant to my problem). I want to temporarily, <em>temporarily</em>, hard code a user in the web.config as follows:</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
    &lt;forms loginUrl="~/Account/Login" timeout="2880"&gt;
      &lt;credentials passwordFormat="Clear"&gt;
        &lt;user name="name" password="password"/&gt;
      &lt;/credentials&gt;
    &lt;/forms&gt;
  &lt;/authentication&gt;
  </code></pre>
  
  <p>I've used that previously, and it's worked as expected. In this app, however, it's not working. In <code>AccountController.cs</code>, in the method <code>Login()</code>, it appears that an object of type <code>UserManager</code> can't find the user I specified in web.config, probably because that object isn't looking in web.config.</p>
  
  <p>So, how I do re-enable using the user specified in web.config? Please provide steps.</p>
  
  <p>I completely understand that this not a good practice. It's only temporary to get something else working.</p>