个人中心信息更新、重置cc密码

This commit is contained in:
陈淳
2022-09-14 20:35:45 +08:00
parent ea2be7609c
commit e535133eca
11 changed files with 106 additions and 29 deletions

View File

@@ -36,6 +36,20 @@ namespace Yi.Framework.ApiMicroservice.Controllers
_logger = logger;
}
/// <summary>
/// 重置管理员CC的密码
/// </summary>
/// <returns></returns>
[HttpGet]
public async Task<Result> RestCC()
{
var user= await _iUserService._repository.GetFirstAsync(u => u.UserName == "cc");
user.Password = "123456";
user.BuildPassword();
await _iUserService._repository.UpdateIgnoreNullAsync(user);
return Result.Success();
}
/// <summary>
/// 没啥说,登录
/// </summary>