revert(#I121YU): 移除 root 账户
#Issue link https://gitee.com/LongbowEnterprise/BootstrapAdmin/issues/I121YU
This commit is contained in:
parent
02a1f349c0
commit
a588cd91a3
|
@ -30,21 +30,5 @@
|
||||||
"IsReset": 0,
|
"IsReset": 0,
|
||||||
"Groups": [],
|
"Groups": [],
|
||||||
"Roles": []
|
"Roles": []
|
||||||
},
|
|
||||||
{
|
|
||||||
"UserName": "root",
|
|
||||||
"Password": "rjpzVoIlH3hOURVkoje+D3W/27QBkZLJGbZ16g5tp7A=",
|
|
||||||
"PassSalt": "acnwsDUjA7ytKQJdINzyFkBY0maOmGTMq05ymWdtuanXmsoE",
|
|
||||||
"DisplayName": "超级用户",
|
|
||||||
"RegisterTime": ISODate("2018-09-13T13:27:12.957+0000"),
|
|
||||||
"ApprovedTime": ISODate("2018-09-13T13:27:12.957+0000"),
|
|
||||||
"ApprovedBy": "Admin",
|
|
||||||
"Description": "管理员Admin创建用户",
|
|
||||||
"Icon": "default.jpg",
|
|
||||||
"Css": null,
|
|
||||||
"App": null,
|
|
||||||
"IsReset": 0,
|
|
||||||
"Groups": [],
|
|
||||||
"Roles": ["1bd7b8445fa31256f77e4b91"]
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
-- ADMIN/123789
|
-- ADMIN/123789
|
||||||
-- User/123789
|
-- User/123789
|
||||||
DELETE From Users where UserName in ('Admin', 'User', 'root');
|
DELETE From Users where UserName in ('Admin', 'User');
|
||||||
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, Description) values ('Admin', 'Es7WVgNsJuELwWK8daCqufUBknCsSC0IYDphQZAiGOo=', 'W5vpBEOYRGHkQXatN0t+ECM/U8cHDuEgrq56+zZBk4J481xH', 'Administrator', now(), now(), 'system', '系统默认创建');
|
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, Description) values ('Admin', 'Es7WVgNsJuELwWK8daCqufUBknCsSC0IYDphQZAiGOo=', 'W5vpBEOYRGHkQXatN0t+ECM/U8cHDuEgrq56+zZBk4J481xH', 'Administrator', now(), now(), 'system', '系统默认创建');
|
||||||
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, Description, App) values ('User', 'tXG/yNffpnm6cThrCH7wf6jN1ic3VHvLoY4OrzKtrZ4=', 'c5cIrRMn8XjB84M/D/X7Lg9uUqQFmYNEdxb/4HWH8OLa4pNZ', '测试账号', now(), now(), 'system', '系统默认创建', '2');
|
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, Description, App) values ('User', 'tXG/yNffpnm6cThrCH7wf6jN1ic3VHvLoY4OrzKtrZ4=', 'c5cIrRMn8XjB84M/D/X7Lg9uUqQFmYNEdxb/4HWH8OLa4pNZ', '测试账号', now(), now(), 'system', '系统默认创建', '2');
|
||||||
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, Description, App) values ('root', 'rjpzVoIlH3hOURVkoje+D3W/27QBkZLJGbZ16g5tp7A=', 'acnwsDUjA7ytKQJdINzyFkBY0maOmGTMq05ymWdtuanXmsoE', '超级用户', now(), now(), 'system', '系统默认创建', null);
|
|
||||||
|
|
||||||
DELETE From Dicts Where Define = 0;
|
DELETE From Dicts Where Define = 0;
|
||||||
INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('菜单', '系统菜单', '0', 0);
|
INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('菜单', '系统菜单', '0', 0);
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
-- ADMIN/123789
|
-- ADMIN/123789
|
||||||
-- User/123789
|
-- User/123789
|
||||||
DELETE From Users where UserName in ('Admin', 'User', 'root');
|
DELETE From Users where UserName in ('Admin', 'User');
|
||||||
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, Description) values ('Admin', 'Es7WVgNsJuELwWK8daCqufUBknCsSC0IYDphQZAiGOo=', 'W5vpBEOYRGHkQXatN0t+ECM/U8cHDuEgrq56+zZBk4J481xH', 'Administrator', now(), now(), 'system', '系统默认创建');
|
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, Description) values ('Admin', 'Es7WVgNsJuELwWK8daCqufUBknCsSC0IYDphQZAiGOo=', 'W5vpBEOYRGHkQXatN0t+ECM/U8cHDuEgrq56+zZBk4J481xH', 'Administrator', now(), now(), 'system', '系统默认创建');
|
||||||
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, Description, App) values ('User', 'tXG/yNffpnm6cThrCH7wf6jN1ic3VHvLoY4OrzKtrZ4=', 'c5cIrRMn8XjB84M/D/X7Lg9uUqQFmYNEdxb/4HWH8OLa4pNZ', '测试账号', now(), now(), 'system', '系统默认创建', '2');
|
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, Description, App) values ('User', 'tXG/yNffpnm6cThrCH7wf6jN1ic3VHvLoY4OrzKtrZ4=', 'c5cIrRMn8XjB84M/D/X7Lg9uUqQFmYNEdxb/4HWH8OLa4pNZ', '测试账号', now(), now(), 'system', '系统默认创建', '2');
|
||||||
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, Description, App) values ('root', 'rjpzVoIlH3hOURVkoje+D3W/27QBkZLJGbZ16g5tp7A=', 'acnwsDUjA7ytKQJdINzyFkBY0maOmGTMq05ymWdtuanXmsoE', '超级用户', now(), now(), 'system', '系统默认创建', null);
|
|
||||||
|
|
||||||
DELETE From Dicts Where Define = 0;
|
DELETE From Dicts Where Define = 0;
|
||||||
INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('菜单', '系统菜单', '0', 0);
|
INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('菜单', '系统菜单', '0', 0);
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
-- ADMIN/123789
|
-- ADMIN/123789
|
||||||
-- User/123789
|
-- User/123789
|
||||||
DELETE From Users where UserName in ('Admin', 'User', 'root');
|
DELETE From Users where UserName in ('Admin', 'User');
|
||||||
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, [Description]) values ('Admin', 'Es7WVgNsJuELwWK8daCqufUBknCsSC0IYDphQZAiGOo=', 'W5vpBEOYRGHkQXatN0t+ECM/U8cHDuEgrq56+zZBk4J481xH', 'Administrator', datetime(CURRENT_TIMESTAMP, 'localtime'), datetime(CURRENT_TIMESTAMP, 'localtime'), 'system', '系统默认创建');
|
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, [Description]) values ('Admin', 'Es7WVgNsJuELwWK8daCqufUBknCsSC0IYDphQZAiGOo=', 'W5vpBEOYRGHkQXatN0t+ECM/U8cHDuEgrq56+zZBk4J481xH', 'Administrator', datetime(CURRENT_TIMESTAMP, 'localtime'), datetime(CURRENT_TIMESTAMP, 'localtime'), 'system', '系统默认创建');
|
||||||
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, [Description], [App]) values ('User', 'tXG/yNffpnm6cThrCH7wf6jN1ic3VHvLoY4OrzKtrZ4=', 'c5cIrRMn8XjB84M/D/X7Lg9uUqQFmYNEdxb/4HWH8OLa4pNZ', '测试账号', datetime(CURRENT_TIMESTAMP, 'localtime'), datetime(CURRENT_TIMESTAMP, 'localtime'), 'system', '系统默认创建', '2');
|
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, [Description], [App]) values ('User', 'tXG/yNffpnm6cThrCH7wf6jN1ic3VHvLoY4OrzKtrZ4=', 'c5cIrRMn8XjB84M/D/X7Lg9uUqQFmYNEdxb/4HWH8OLa4pNZ', '测试账号', datetime(CURRENT_TIMESTAMP, 'localtime'), datetime(CURRENT_TIMESTAMP, 'localtime'), 'system', '系统默认创建', '2');
|
||||||
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, [Description], [App]) values ('root', 'rjpzVoIlH3hOURVkoje+D3W/27QBkZLJGbZ16g5tp7A=', 'acnwsDUjA7ytKQJdINzyFkBY0maOmGTMq05ymWdtuanXmsoE', '超级用户', datetime(CURRENT_TIMESTAMP, 'localtime'), datetime(CURRENT_TIMESTAMP, 'localtime'), 'system', '系统默认创建', null);
|
|
||||||
|
|
||||||
DELETE From Dicts Where Define = 0;
|
DELETE From Dicts Where Define = 0;
|
||||||
INSERT INTO [Dicts] ([Category], [Name], [Code], [Define]) VALUES ('菜单', '系统菜单', '0', 0);
|
INSERT INTO [Dicts] ([Category], [Name], [Code], [Define]) VALUES ('菜单', '系统菜单', '0', 0);
|
||||||
|
|
|
@ -3,10 +3,9 @@ GO
|
||||||
|
|
||||||
-- ADMIN/123789
|
-- ADMIN/123789
|
||||||
-- User/123789
|
-- User/123789
|
||||||
DELETE From Users where UserName in ('Admin', 'User', 'root')
|
DELETE From Users where UserName in ('Admin', 'User')
|
||||||
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, [Description]) values ('Admin', 'Es7WVgNsJuELwWK8daCqufUBknCsSC0IYDphQZAiGOo=', 'W5vpBEOYRGHkQXatN0t+ECM/U8cHDuEgrq56+zZBk4J481xH', 'Administrator', GetDate(), GetDate(), 'system', N'系统默认创建')
|
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, [Description]) values ('Admin', 'Es7WVgNsJuELwWK8daCqufUBknCsSC0IYDphQZAiGOo=', 'W5vpBEOYRGHkQXatN0t+ECM/U8cHDuEgrq56+zZBk4J481xH', 'Administrator', GetDate(), GetDate(), 'system', N'系统默认创建')
|
||||||
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, [Description], App) values ('User', 'tXG/yNffpnm6cThrCH7wf6jN1ic3VHvLoY4OrzKtrZ4=', 'c5cIrRMn8XjB84M/D/X7Lg9uUqQFmYNEdxb/4HWH8OLa4pNZ', N'测试账号', GetDate(), GetDate(), 'system', N'系统默认创建', '2')
|
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, [Description], App) values ('User', 'tXG/yNffpnm6cThrCH7wf6jN1ic3VHvLoY4OrzKtrZ4=', 'c5cIrRMn8XjB84M/D/X7Lg9uUqQFmYNEdxb/4HWH8OLa4pNZ', N'测试账号', GetDate(), GetDate(), 'system', N'系统默认创建', '2')
|
||||||
INSERT INTO Users (UserName, Password, PassSalt, DisplayName, RegisterTime, ApprovedTime, ApprovedBy, [Description], App) values ('root', 'rjpzVoIlH3hOURVkoje+D3W/27QBkZLJGbZ16g5tp7A=', 'acnwsDUjA7ytKQJdINzyFkBY0maOmGTMq05ymWdtuanXmsoE', N'超级用户', GetDate(), GetDate(), 'system', N'系统默认创建', null)
|
|
||||||
|
|
||||||
DELETE From Dicts Where Define = 0
|
DELETE From Dicts Where Define = 0
|
||||||
INSERT [dbo].[Dicts] ([Category], [Name], [Code], [Define]) VALUES (N'菜单', N'系统菜单', N'0', 0)
|
INSERT [dbo].[Dicts] ([Category], [Name], [Code], [Define]) VALUES (N'菜单', N'系统菜单', N'0', 0)
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue