修改配置文件和提示

This commit is contained in:
2022-05-23 11:26:20 +08:00
parent af586f302c
commit abd3f2dc7a
9 changed files with 52 additions and 80 deletions
@@ -142,6 +142,12 @@ namespace IRaCIS.Application.Services
[HttpGet]
public async Task<IResponseOutput> InitSetUserNameAndPwd (Guid userId, string newUserName,string newPWd)
{
//正则 至少8个字符,至少1个大写字母,1个小写字母,1个数字和1个特殊字符:
//^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&])[A-Za-z\d$@$!%*?&]{8,}
await _userRepository.UpdatePartialFromQueryAsync(userId, u => new User()
{
UserName = newUserName,