fix
This commit is contained in:
@@ -107,12 +107,7 @@ namespace Ewide.Core.Service
|
|||||||
var pattern = App.Configuration.GetSection("SimplePassword:Pattern").Value;
|
var pattern = App.Configuration.GetSection("SimplePassword:Pattern").Value;
|
||||||
if (!Regex.Match(newPassword, pattern).Success)
|
if (!Regex.Match(newPassword, pattern).Success)
|
||||||
{
|
{
|
||||||
return new LoginOutput
|
throw Oops.Oh("新密码强度不符合规则");
|
||||||
{
|
|
||||||
Passed = false,
|
|
||||||
Pattern = pattern,
|
|
||||||
Descriptions = App.Configuration.GetSection("SimplePassword:Descriptions").Value
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
newPassword = MD5Encryption.Encrypt(newPassword);
|
newPassword = MD5Encryption.Encrypt(newPassword);
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ export default class index extends Component {
|
|||||||
label="新密码"
|
label="新密码"
|
||||||
rules={[
|
rules={[
|
||||||
{ required: true, message: '请输入新密码' },
|
{ required: true, message: '请输入新密码' },
|
||||||
// { pattern, message: '密码格式错误' },
|
{ pattern, message: '密码格式错误' },
|
||||||
]}
|
]}
|
||||||
name="newPassword"
|
name="newPassword"
|
||||||
tooltip={descriptions}
|
tooltip={descriptions}
|
||||||
|
|||||||
Reference in New Issue
Block a user