title: Can only use "generated security password" for log in
body: <p>This is my SecurityConfig</p>
  
  <pre><code>@Configuration
  @EnableGlobalMethodSecurity ( securedEnabled = true )
  public class SecurityConfig extends WebSecurityConfigurerAdapter {
  
      @Autowired
      public void configureAuth(AuthenticationManagerBuilder auth) throws Exception{
          auth
              .inMemoryAuthentication()
              .withUser("tom")
              .password("password")
              .roles("ADMIN")
          .and()
              .withUser("user")
              .password("password")
              .roles("USER");
  
      }}
  </code></pre>
  
  <p>Even though I define in memory users I can't log in using them and I get a generated user password everytime I run the application and I'm pretty sure that, that isn't supposed to be happening.</p>
  
  <p>I've tried the solutions that were posted <a href="https://stackoverflow.com/questions/30761253/remove-using-default-security-password-on-spring-boot?utm_medium=organic&amp;utm_source=google_rich_qa&amp;utm_campaign=google_rich_qa">here</a> with no luck at all.</p>
  
  <p>Application.properties has nothing changed in it and main application class is this default with no changes.</p>