Skip to content

Commit a7861eb

Browse files
committed
Improved db initialization
1 parent 8da7086 commit a7861eb

File tree

1 file changed

+11
-0
lines changed
  • session-handling-spring-security/src/main/resources

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
INSERT INTO users(username,password,active)
2+
VALUES ('user','$2a$10$uyw4NHXu52GKyc2iJRfyOu/p.jn2IXhibpvYEAO4AXcaTQ0LXBCnq', 1);
3+
4+
INSERT INTO users(username,password,active)
5+
VALUES ('admin','$2a$10$7N00PGwYhJ1GT/8zf0KZD.wZhSbFDhs49HEx7wOkORu3q0/zhqyWe', 1);
6+
7+
INSERT INTO roles (username, role)
8+
VALUES ('user', 'ROLE_USER');
9+
INSERT INTO roles (username, role)
10+
VALUES ('admin', 'ROLE_ADMIN');
11+

0 commit comments

Comments
 (0)