User login credentials for production
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user