update 用户管理新增改为使用默认密码

This commit is contained in:
2021-07-02 09:50:24 +08:00
parent 850d490a1b
commit 3725f586d2
5 changed files with 11 additions and 25 deletions

View File

@@ -6804,16 +6804,6 @@
账号
</summary>
</member>
<member name="P:Ewide.Core.Service.AddUserInput.Password">
<summary>
密码
</summary>
</member>
<member name="P:Ewide.Core.Service.AddUserInput.Confirm">
<summary>
确认密码
</summary>
</member>
<member name="P:Ewide.Core.Service.DeleteUserInput.Id">
<summary>
用户Id

View File

@@ -84,17 +84,13 @@ namespace Ewide.Core.Service
[Required(ErrorMessage = "账号名称不能为空")]
public override string Account { get; set; }
/// <summary>
/// 密码
/// </summary>
[Required(ErrorMessage = "密码不能为空")]
public override string Password { get; set; }
//[Required(ErrorMessage = "密码不能为空")]
//public override string Password { get; set; }
/// <summary>
/// 确认密码
/// </summary>
[Required(ErrorMessage = "确认密码不能为空"), Compare(nameof(Password), ErrorMessage = "两次密码不一致")]
public string Confirm { get; set; }
//[Required(ErrorMessage = "确认密码不能为空"), Compare(nameof(Password), ErrorMessage = "两次密码不一致")]
//public string Confirm { get; set; }
}
public class DeleteUserInput : UserInput

View File

@@ -113,7 +113,7 @@ namespace Ewide.Core.Service
var isExist = await _sysUserRep.AnyAsync(u => u.Account == input.Account, false);
if (isExist) throw Oops.Oh(ErrorCode.D1003);
input.Password = CommonConst.DEFAULT_PASSWORD;
var user = input.Adapt<SysUser>();
user.Password = MD5Encryption.Encrypt(input.Password);
if (string.IsNullOrEmpty(user.Name))

View File

@@ -204,7 +204,7 @@ export default class form extends Component {
>
<Input autoComplete="off" placeholder="请输入姓名" />
</Form.Item>
{this.props.mode == 'add' && (
{/* {this.props.mode == 'add' && (
<>
<Form.Item
label="密码"
@@ -225,7 +225,7 @@ export default class form extends Component {
<Input.Password autoComplete="off" placeholder="请确认密码" />
</Form.Item>
</>
)}
)} */}
<Form.Item label="昵称" name="nickName">
<Input autoComplete="off" placeholder="请输入昵称" />
</Form.Item>

View File

@@ -298,7 +298,7 @@ export default class form extends Component {
>
<Input autoComplete="off" placeholder="请输入姓名" />
</Form.Item>
{this.props.mode == 'add' && (
{/* {this.props.mode == 'add' && (
<>
<Form.Item
label="密码"
@@ -319,7 +319,7 @@ export default class form extends Component {
<Input.Password autoComplete="off" placeholder="请确认密码" />
</Form.Item>
</>
)}
)} */}
<Form.Item label="昵称" name="nickName">
<Input autoComplete="off" placeholder="请输入昵称" />
</Form.Item>