Commit 679281f321f84c72d88cb252d1d4b0486ad2b5e2
Merge branch 'main' into 'Framework'
Update default admin username from 'cc' to 'admin' across multiple files and adj… …ust related documentation and seed data accordingly. See merge request !1
Showing
7 changed files
with
23 additions
and
23 deletions
README.md
| ... | ... | @@ -77,7 +77,7 @@ cd Yi |
| 77 | 77 | |
| 78 | 78 | 启动成功后,浏览器会自动打开 Swagger 文档:`http://localhost:19001/swagger` |
| 79 | 79 | |
| 80 | -**默认管理员账号**:`cc` / `123456` | |
| 80 | +**默认管理员账号**:`admin` / `123456` | |
| 81 | 81 | |
| 82 | 82 | > 💡 **提示**: |
| 83 | 83 | > - 首次启动会自动创建数据库表(CodeFirst) |
| ... | ... | @@ -559,7 +559,7 @@ A: 设置 `EnabledSaasMultiTenancy: true`,并在 Swagger 中使用 `__tenant` |
| 559 | 559 | ## 📞 联系我们 |
| 560 | 560 | |
| 561 | 561 | - **官网**:[ccnetcore.com](https://ccnetcore.com) |
| 562 | -- **演示地址**:[data.ccnetcore.com:2000](https://data.ccnetcore.com:2000)(账号:cc / 密码:123456) | |
| 562 | +- **演示地址**:[data.ccnetcore.com:2000](https://data.ccnetcore.com:2000)(账号:admin / 密码:123456) | |
| 563 | 563 | - **QQ 群**:981136525(官方五群) |
| 564 | 564 | - **微信**:添加 `chengzilaoge520`(备注:拉群) |
| 565 | 565 | ... | ... |
Yi.Abp.Net8/client/Yi.Abp.Client.Console/Program.cs
| 1 | -using Microsoft.Extensions.DependencyInjection; | |
| 1 | +using Microsoft.Extensions.DependencyInjection; | |
| 2 | 2 | using Microsoft.Extensions.Hosting; |
| 3 | 3 | using Yi.Abp.Client.Console; |
| 4 | 4 | using Yi.Framework.Rbac.Application.Contracts.IServices; |
| ... | ... | @@ -20,7 +20,7 @@ try |
| 20 | 20 | var data1 = await account.GetCaptchaImageAsync(); |
| 21 | 21 | |
| 22 | 22 | //登录 |
| 23 | - var data2 = await account.PostLoginAsync(new Yi.Framework.Rbac.Application.Contracts.Dtos.Account.LoginInputVo { UserName = "cc", Password = "123456", Code = string.Empty, Uuid = string.Empty }); | |
| 23 | + var data2 = await account.PostLoginAsync(new Yi.Framework.Rbac.Application.Contracts.Dtos.Account.LoginInputVo { UserName = "admin", Password = "123456", Code = string.Empty, Uuid = string.Empty }); | |
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | host.Run(); | ... | ... |
Yi.Abp.Net8/framework/Yi.Framework.BackgroundWorkers.Hangfire/YiTokenAuthorizationFilter.cs
| 1 | -using Hangfire.Dashboard; | |
| 1 | +using Hangfire.Dashboard; | |
| 2 | 2 | using Microsoft.AspNetCore.Http; |
| 3 | 3 | using Microsoft.Extensions.DependencyInjection; |
| 4 | 4 | using Volo.Abp.DependencyInjection; |
| ... | ... | @@ -16,7 +16,7 @@ public sealed class YiTokenAuthorizationFilter : IDashboardAsyncAuthorizationFil |
| 16 | 16 | private const string HtmlContentType = "text/html"; |
| 17 | 17 | |
| 18 | 18 | private readonly IServiceProvider _serviceProvider; |
| 19 | - private string _requiredUsername = "cc"; | |
| 19 | + private string _requiredUsername = "admin"; | |
| 20 | 20 | private TimeSpan _tokenExpiration = TimeSpan.FromMinutes(10); |
| 21 | 21 | |
| 22 | 22 | /// <summary> | ... | ... |
Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain.Shared/Consts/UserConst.cs
| ... | ... | @@ -24,7 +24,7 @@ namespace Yi.Framework.Rbac.Domain.Shared.Consts |
| 24 | 24 | public const string Phone_Repeat = "手机号已重复"; |
| 25 | 25 | |
| 26 | 26 | //子租户管理员 |
| 27 | - public const string Admin = "cc"; | |
| 27 | + public const string Admin = "admin"; | |
| 28 | 28 | public const string AdminRolesCode = "admin"; |
| 29 | 29 | public const string AdminPermissionCode = "*:*:*"; |
| 30 | 30 | ... | ... |
Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.SqlSugarCore/DataSeeds/UserDataSeed.cs
| 1 | -using Microsoft.Extensions.Options; | |
| 1 | +using Microsoft.Extensions.Options; | |
| 2 | 2 | using Volo.Abp.Data; |
| 3 | 3 | using Volo.Abp.DependencyInjection; |
| 4 | 4 | using Yi.Framework.Rbac.Domain.Entities; |
| ... | ... | @@ -25,18 +25,18 @@ namespace Yi.Framework.Rbac.SqlSugarCore.DataSeeds |
| 25 | 25 | var entities = new List<UserAggregateRoot>(); |
| 26 | 26 | UserAggregateRoot user1 = new UserAggregateRoot() |
| 27 | 27 | { |
| 28 | - Name = "大橙子", | |
| 29 | - UserName = "cc", | |
| 30 | - Nick = "橙子", | |
| 28 | + Name = "超级管理员", | |
| 29 | + UserName = "admin", | |
| 30 | + Nick = "超级管理员", | |
| 31 | 31 | EncryPassword = new EncryPasswordValueObject(_options.AdminPassword), |
| 32 | - Email = "454313500@qq.com", | |
| 32 | + Email = "admin@example.com", | |
| 33 | 33 | Phone = 13800000000, |
| 34 | 34 | Sex = SexEnum.Male, |
| 35 | - Address = "深圳", | |
| 35 | + Address = "成都", | |
| 36 | 36 | Age = 20, |
| 37 | - Introduction = "还有谁?", | |
| 37 | + Introduction = "超级管理员", | |
| 38 | 38 | OrderNum = 999, |
| 39 | - Remark = "描述是什么呢?", | |
| 39 | + Remark = "超级管理员", | |
| 40 | 40 | State = true |
| 41 | 41 | }; |
| 42 | 42 | user1.BuildPassword(); |
| ... | ... | @@ -45,18 +45,18 @@ namespace Yi.Framework.Rbac.SqlSugarCore.DataSeeds |
| 45 | 45 | UserAggregateRoot user2 = new UserAggregateRoot() |
| 46 | 46 | { |
| 47 | 47 | |
| 48 | - Name = "大测试", | |
| 48 | + Name = "测试", | |
| 49 | 49 | UserName = "test", |
| 50 | 50 | Nick = "测试", |
| 51 | - EncryPassword=new EncryPasswordValueObject("123456"), | |
| 52 | - Email = "454313500@qq.com", | |
| 51 | + EncryPassword=new EncryPasswordValueObject(_options.AdminPassword), | |
| 52 | + Email = "test@example.com", | |
| 53 | 53 | Phone = 15900000000, |
| 54 | 54 | Sex = SexEnum.Woman, |
| 55 | - Address = "深圳", | |
| 55 | + Address = "成都", | |
| 56 | 56 | Age = 18, |
| 57 | - Introduction = "还有我!", | |
| 57 | + Introduction = "测试", | |
| 58 | 58 | OrderNum = 1, |
| 59 | - Remark = "我没有描述!", | |
| 59 | + Remark = "测试", | |
| 60 | 60 | State = true |
| 61 | 61 | |
| 62 | 62 | }; | ... | ... |
Yi.Abp.Net8/src/Yi.Abp.Application/Services/TestService.cs
Yi.Doc.Md/01.框架快速开始教程/03.如何启动.md