User login credentials for production

This commit is contained in:
2019-11-10 12:01:44 +01:00
parent 92aeb2823a
commit 1b02059f05
2 changed files with 4 additions and 3 deletions
@@ -1,10 +1,7 @@
package de.tilman.transactions;
import org.h2.server.web.WebServlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
public class Application {
@@ -23,6 +23,10 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
auth.inMemoryAuthentication()
.withUser("adam").password("test").roles("USER", "ADMIN").and()
.withUser("betty").password("test").roles("USER");
// SET PASSWORDS FOR PRODUCTION
// .withUser("tilman").password(XXX).roles("USER", "ADMIN").and()
// .withUser("anica").password(XXX).roles("USER");
}
@Override