This commit is contained in:
2023-04-20 15:50:02 +08:00
parent 4309ba71e9
commit 47ca4c574f
437 changed files with 137857 additions and 71 deletions
@@ -253,11 +253,11 @@ namespace IRaCIS.Application.Services
public async Task<IResponseOutput> ResetPassword(Guid userId)
{
var pwd = "123456";
var pwd = AppSettings.DefaultPassword;
if (_hostEnvironment.EnvironmentName != "Development")
{
pwd = "Extimaging." + new Random().Next(100, 1000);
pwd = "EIImage." + new Random().Next(100, 1000);
}
@@ -500,7 +500,7 @@ namespace IRaCIS.Application.Services
saveItem.Password = MD5Helper.Md5("123456");
saveItem.Password = MD5Helper.Md5(AppSettings.DefaultPassword);
await _userRepository.AddAsync(saveItem);