diff --git a/scripts/MongoDB/Users.js b/scripts/MongoDB/Users.js index a91d53cd..b7b68ff4 100644 --- a/scripts/MongoDB/Users.js +++ b/scripts/MongoDB/Users.js @@ -30,21 +30,5 @@ "IsReset": 0, "Groups": [], "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"] } ]; diff --git a/scripts/MySQL/initData.sql b/scripts/MySQL/initData.sql index 98488b89..e9b87b0b 100644 --- a/scripts/MySQL/initData.sql +++ b/scripts/MySQL/initData.sql @@ -1,9 +1,8 @@ -- ADMIN/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, 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; INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('菜单', '系统菜单', '0', 0); diff --git a/scripts/Postgresql/initData.sql b/scripts/Postgresql/initData.sql index 4a09f4f6..8a36ebb3 100644 --- a/scripts/Postgresql/initData.sql +++ b/scripts/Postgresql/initData.sql @@ -1,9 +1,8 @@ -- ADMIN/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, 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; INSERT INTO Dicts (Category, Name, Code, Define) VALUES ('菜单', '系统菜单', '0', 0); diff --git a/scripts/SQLite/InitData.sql b/scripts/SQLite/InitData.sql index df82ac39..375f16b1 100644 --- a/scripts/SQLite/InitData.sql +++ b/scripts/SQLite/InitData.sql @@ -1,9 +1,8 @@ -- ADMIN/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], [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; INSERT INTO [Dicts] ([Category], [Name], [Code], [Define]) VALUES ('菜单', '系统菜单', '0', 0); diff --git a/scripts/SqlServer/InitData.sql b/scripts/SqlServer/InitData.sql index ea7b9a17..24cc56c4 100644 --- a/scripts/SqlServer/InitData.sql +++ b/scripts/SqlServer/InitData.sql @@ -3,10 +3,9 @@ GO -- ADMIN/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], 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 INSERT [dbo].[Dicts] ([Category], [Name], [Code], [Define]) VALUES (N'菜单', N'系统菜单', N'0', 0) diff --git a/src/admin/Bootstrap.Admin/BootstrapAdmin.db b/src/admin/Bootstrap.Admin/BootstrapAdmin.db index d9a91589..92361faf 100644 Binary files a/src/admin/Bootstrap.Admin/BootstrapAdmin.db and b/src/admin/Bootstrap.Admin/BootstrapAdmin.db differ