322c9502
Julien Cartigny
Ad Spring securit...
|
1
2
3
4
5
6
7
8
9
|
INSERT INTO USER_T (USERNAME_F, PASSWORD_F)
VALUES ('admin', '$2a$04$/87gxfQlNqMNRvI/ILyZ/.F8Bk2/t2RuWoZXE1upQHeUglbjTYIIa');
INSERT INTO ROLE_T (NAME_F) VALUES ('ROLE_ADMIN');
INSERT INTO ROLE_T (NAME_F) VALUES ('ROLE_USER');
INSERT INTO USER_ROLE_T (USER_ID, ROLE_ID) VALUES ((SELECT USER_ID
FROM USER_T
WHERE USERNAME_F = 'admin'), (SELECT ROLE_ID
FROM ROLE_T
WHERE NAME_F = 'ROLE_ADMIN'));
|