新增设置注册邮箱前缀最小位数
This commit is contained in:
@@ -377,6 +377,15 @@ function submit() {
|
||||
return
|
||||
}
|
||||
|
||||
if (addForm.email.length < settingStore.settings.minEmailPrefix) {
|
||||
ElMessage({
|
||||
message: t('minEmailPrefix', {msg: settingStore.settings.minEmailPrefix}),
|
||||
type: 'error',
|
||||
plain: true,
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
if (!isEmail(addForm.email + addForm.suffix)) {
|
||||
ElMessage({
|
||||
message: t('notEmailMsg'),
|
||||
|
||||
Reference in New Issue
Block a user