Change the login of anonymous user to system #633

This commit is contained in:
Alexander Shustanov 2018-06-09 10:36:16 +04:00
parent fcb528ef5d
commit 6f71beddfb
11 changed files with 51 additions and 16 deletions

View File

@ -912,14 +912,14 @@ values ('60885987-1b61-4247-94c7-dff348347f93', current_timestamp, 0, 'admin', '
'Administrator', '0fa2b1a5-1d68-4d69-9fbd-dff348347f93', true)^
insert into SEC_USER (ID, CREATE_TS, VERSION, LOGIN, LOGIN_LC, PASSWORD, NAME, GROUP_ID, ACTIVE)
values ('a405db59-e674-4f63-8afe-269dda788fe8', now(), 0, 'anonymous', 'anonymous', null,
'Anonymous', '0fa2b1a5-1d68-4d69-9fbd-dff348347f93', true)^
values ('a405db59-e674-4f63-8afe-269dda788fe8', now(), 0, 'system', 'system', null,
'System', '0fa2b1a5-1d68-4d69-9fbd-dff348347f93', true)^
insert into SEC_ROLE (ID, CREATE_TS, VERSION, NAME, ROLE_TYPE)
values ('0c018061-b26f-4de2-a5be-dff348347f93', current_timestamp, 0, 'Administrators', 10)^
insert into SEC_ROLE (ID, CREATE_TS, VERSION, NAME, ROLE_TYPE)
values ('cd541dd4-eeb7-cd5b-847e-d32236552fa9', current_timestamp, 0, 'Anonymous', 30)^
values ('cd541dd4-eeb7-cd5b-847e-d32236552fa9', current_timestamp, 0, 'System', 30)^
insert into SEC_USER_ROLE (ID, CREATE_TS, VERSION, USER_ID, ROLE_ID)
values ('c838be0a-96d0-4ef4-a7c0-dff348347f93', current_timestamp, 0, '60885987-1b61-4247-94c7-dff348347f93', '0c018061-b26f-4de2-a5be-dff348347f93')^

View File

@ -966,14 +966,14 @@ values ('60885987-1b61-4247-94c7-dff348347f93', current_timestamp, 0, 'admin', '
'Administrator', '0fa2b1a5-1d68-4d69-9fbd-dff348347f93', 1)^
insert into SEC_USER (ID, CREATE_TS, VERSION, LOGIN, LOGIN_LC, PASSWORD, NAME, GROUP_ID, ACTIVE)
values ('a405db59-e674-4f63-8afe-269dda788fe8', current_timestamp, 0, 'anonymous', 'anonymous', null,
'Anonymous', '0fa2b1a5-1d68-4d69-9fbd-dff348347f93', 1)^
values ('a405db59-e674-4f63-8afe-269dda788fe8', current_timestamp, 0, 'system', 'system', null,
'System', '0fa2b1a5-1d68-4d69-9fbd-dff348347f93', 1)^
insert into SEC_ROLE (ID, CREATE_TS, VERSION, NAME, ROLE_TYPE)
values ('0c018061-b26f-4de2-a5be-dff348347f93', current_timestamp, 0, 'Administrators', 10)^
insert into SEC_ROLE (ID, CREATE_TS, VERSION, NAME, ROLE_TYPE)
values ('cd541dd4-eeb7-cd5b-847e-d32236552fa9', current_timestamp, 0, 'Anonymous', 30)^
values ('cd541dd4-eeb7-cd5b-847e-d32236552fa9', current_timestamp, 0, 'System', 30)^
insert into SEC_USER_ROLE (ID, CREATE_TS, VERSION, USER_ID, ROLE_ID)
values ('c838be0a-96d0-4ef4-a7c0-dff348347f93', current_timestamp, 0, '60885987-1b61-4247-94c7-dff348347f93', '0c018061-b26f-4de2-a5be-dff348347f93')^

View File

@ -986,14 +986,14 @@ values ('608859871b61424794c7dff348347f93', current_timestamp, 0, 'admin', 'admi
'Administrator', '0fa2b1a51d684d699fbddff348347f93', 1)^
insert into SEC_USER (ID, CREATE_TS, VERSION, LOGIN, LOGIN_LC, PASSWORD, NAME, GROUP_ID, ACTIVE)
values ('a405db59e6744f638afe269dda788fe8', now(), 0, 'anonymous', 'anonymous', null,
'Anonymous', '0fa2b1a51d684d699fbddff348347f93', true)^
values ('a405db59e6744f638afe269dda788fe8', now(), 0, 'system', 'system', null,
'System', '0fa2b1a51d684d699fbddff348347f93', true)^
insert into SEC_ROLE (ID, CREATE_TS, VERSION, NAME, ROLE_TYPE)
values ('0c018061b26f4de2a5bedff348347f93', current_timestamp, 0, 'Administrators', 10)^
insert into SEC_ROLE (ID, CREATE_TS, VERSION, NAME, ROLE_TYPE)
values ('cd541dd4eeb7cd5b847ed32236552fa9', current_timestamp, 0, 'Anonymous', 30)^
values ('cd541dd4eeb7cd5b847ed32236552fa9', current_timestamp, 0, 'System', 30)^
insert into SEC_USER_ROLE (ID, CREATE_TS, VERSION, USER_ID, ROLE_ID)
values ('c838be0a96d04ef4a7c0dff348347f93', current_timestamp, 0, '608859871b61424794c7dff348347f93', '0c018061b26f4de2a5bedff348347f93')^

View File

@ -853,14 +853,14 @@ values ('608859871b61424794c7dff348347f93', current_timestamp, 0, 'admin', 'admi
'Administrator', '0fa2b1a51d684d699fbddff348347f93', 1)^
insert into SEC_USER (ID, CREATE_TS, VERSION, LOGIN, LOGIN_LC, PASSWORD, NAME, GROUP_ID, ACTIVE)
values ('a405db59e6744f638afe269dda788fe8', current_timestamp, 0, 'anonymous', 'anonymous', null,
'Anonymous', '0fa2b1a51d684d699fbddff348347f93', 1)^
values ('a405db59e6744f638afe269dda788fe8', current_timestamp, 0, 'system', 'system', null,
'System', '0fa2b1a51d684d699fbddff348347f93', 1)^
insert into SEC_ROLE (ID, CREATE_TS, VERSION, NAME, ROLE_TYPE)
values ('0c018061b26f4de2a5bedff348347f93', current_timestamp, 0, 'Administrators', 10)^
insert into SEC_ROLE (ID, CREATE_TS, VERSION, NAME, ROLE_TYPE)
values ('cd541dd4eeb7cd5b847ed32236552fa9', current_timestamp, 0, 'Anonymous', 30)^
values ('cd541dd4eeb7cd5b847ed32236552fa9', current_timestamp, 0, 'System', 30)^
insert into SEC_USER_ROLE (ID, CREATE_TS, VERSION, USER_ID, ROLE_ID)
values ('c838be0a96d04ef4a7c0dff348347f93', current_timestamp, 0, '608859871b61424794c7dff348347f93', '0c018061b26f4de2a5bedff348347f93')^

View File

@ -949,14 +949,14 @@ values ('60885987-1b61-4247-94c7-dff348347f93', now(), 0, 'admin', 'admin',
'Administrator', '0fa2b1a5-1d68-4d69-9fbd-dff348347f93', true)^
insert into SEC_USER (ID, CREATE_TS, VERSION, LOGIN, LOGIN_LC, PASSWORD, NAME, GROUP_ID, ACTIVE)
values ('a405db59-e674-4f63-8afe-269dda788fe8', now(), 0, 'anonymous', 'anonymous', null,
'Anonymous', '0fa2b1a5-1d68-4d69-9fbd-dff348347f93', true)^
values ('a405db59-e674-4f63-8afe-269dda788fe8', now(), 0, 'system', 'system', null,
'System', '0fa2b1a5-1d68-4d69-9fbd-dff348347f93', true)^
insert into SEC_ROLE (ID, CREATE_TS, VERSION, NAME, ROLE_TYPE)
values ('0c018061-b26f-4de2-a5be-dff348347f93', now(), 0, 'Administrators', 10)^
insert into SEC_ROLE (ID, CREATE_TS, VERSION, NAME, ROLE_TYPE)
values ('cd541dd4-eeb7-cd5b-847e-d32236552fa9', now(), 0, 'Anonymous', 30)^
values ('cd541dd4-eeb7-cd5b-847e-d32236552fa9', now(), 0, 'System', 30)^
insert into SEC_USER_ROLE (ID, CREATE_TS, VERSION, USER_ID, ROLE_ID)
values ('c838be0a-96d0-4ef4-a7c0-dff348347f93', now(), 0, '60885987-1b61-4247-94c7-dff348347f93', '0c018061-b26f-4de2-a5be-dff348347f93')^

View File

@ -0,0 +1,7 @@
update SEC_USER
set LOGIN='system', LOGIN_LC='system', NAME='System'
where id = 'a405db59-e674-4f63-8afe-269dda788fe8'^
update SEC_GROUP
set NAME='System'
where id='cd541dd4-eeb7-cd5b-847e-d32236552fa9'^

View File

@ -0,0 +1,7 @@
update SEC_USER
set LOGIN='system', LOGIN_LC='system', NAME='System'
where id = 'a405db59-e674-4f63-8afe-269dda788fe8'^
update SEC_GROUP
set NAME='System'
where id='cd541dd4-eeb7-cd5b-847e-d32236552fa9'^

View File

@ -0,0 +1,7 @@
update SEC_USER
set LOGIN='system', LOGIN_LC='system', NAME='System'
where id = 'a405db59-e674-4f63-8afe-269dda788fe8'^
update SEC_GROUP
set NAME='System'
where id='cd541dd4-eeb7-cd5b-847e-d32236552fa9'^

View File

@ -0,0 +1,7 @@
update SEC_USER
set LOGIN='system', LOGIN_LC='system', NAME='System'
where id = 'a405db59-e674-4f63-8afe-269dda788fe8'^
update SEC_GROUP
set NAME='System'
where id='cd541dd4-eeb7-cd5b-847e-d32236552fa9'^

View File

@ -0,0 +1,7 @@
update SEC_USER
set LOGIN='system', LOGIN_LC='system', NAME='System'
where id = 'a405db59-e674-4f63-8afe-269dda788fe8'^
update SEC_GROUP
set NAME='System'
where id='cd541dd4-eeb7-cd5b-847e-d32236552fa9'^

View File

@ -245,7 +245,7 @@ public interface ServerConfig extends Config {
*/
@Property("cuba.anonymousLogin")
@Source(type = SourceType.DATABASE)
@Default("anonymous")
@Default("system")
String getAnonymousLogin();
/**