auth the apis

This commit is contained in:
wfnuser 2018-12-26 09:38:22 +08:00
parent 09d1edf3eb
commit 8855bc5bda

View File

@ -16,7 +16,7 @@ public class CustomUserDetailsService implements UserDetailsService {
// TODO: get user from database
User user = new User();
user.setPassword("123456");
user.setPassword("$2a$04$l55XHWJ80UfbNXHIhFiunuqG07N2fOSmxqQEgNqijTY9tI/P0rnM6");
user.setUsername("nacos");
return new CustomUserDetails(user);
}