mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
delete users
This commit is contained in:
@@ -26,6 +26,7 @@ import com.commafeed.backend.security.Role;
|
||||
public class StartupBean {
|
||||
|
||||
private static Logger log = LoggerFactory.getLogger(StartupBean.class);
|
||||
public static final String ADMIN_NAME = "admin";
|
||||
|
||||
@Inject
|
||||
FeedService feedService;
|
||||
@@ -48,7 +49,7 @@ public class StartupBean {
|
||||
if (userService.getCount() == 0) {
|
||||
log.info("Populating database with default values");
|
||||
|
||||
User user = userService.register("admin", "admin",
|
||||
User user = userService.register(ADMIN_NAME, "admin",
|
||||
Arrays.asList(Role.ADMIN, Role.USER));
|
||||
userService.register("test", "test", Arrays.asList(Role.USER));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user