update 用户管理新增改为使用默认密码
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user