修改
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user