fix: allow two-character member names
Deploy olons-admin production / deploy (push) Successful in 9m10s
Deploy olons-admin production / deploy (push) Successful in 9m10s
This commit is contained in:
@@ -75,7 +75,7 @@ type AppMemberViewModel struct {
|
|||||||
|
|
||||||
type AppMemberEditInp struct {
|
type AppMemberEditInp struct {
|
||||||
Id uint64 `json:"id"`
|
Id uint64 `json:"id"`
|
||||||
Username string `json:"username" v:"required|length:3,64#用户名不能为空|用户名长度为3到64个字符"`
|
Username string `json:"username" v:"required|length:2,64#用户名不能为空|用户名长度为2到64个字符"`
|
||||||
Mobile string `json:"mobile" v:"phone-loose#手机号格式不正确"`
|
Mobile string `json:"mobile" v:"phone-loose#手机号格式不正确"`
|
||||||
Password string `json:"password"`
|
Password string `json:"password"`
|
||||||
TradePassword string `json:"tradePassword"`
|
TradePassword string `json:"tradePassword"`
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type AppMemberRegisterInp struct {
|
type AppMemberRegisterInp struct {
|
||||||
Username string `json:"username" v:"required|length:3,64#用户名不能为空|用户名长度为3到64个字符"`
|
Username string `json:"username" v:"required|length:2,64#用户名不能为空|用户名长度为2到64个字符"`
|
||||||
Mobile string `json:"mobile" v:"required|phone-loose#手机号不能为空|手机号格式不正确"`
|
Mobile string `json:"mobile" v:"required|phone-loose#手机号不能为空|手机号格式不正确"`
|
||||||
Password string `json:"password" v:"required|length:6,64#密码不能为空|密码长度为6到64个字符"`
|
Password string `json:"password" v:"required|length:6,64#密码不能为空|密码长度为6到64个字符"`
|
||||||
InviteCode string `json:"inviteCode" v:"required#请输入邀请码"`
|
InviteCode string `json:"inviteCode" v:"required#请输入邀请码"`
|
||||||
|
|||||||
@@ -479,7 +479,7 @@
|
|||||||
const editRules = {
|
const editRules = {
|
||||||
username: [
|
username: [
|
||||||
{ required: true, message: '请输入用户名称', trigger: ['input', 'blur'] },
|
{ required: true, message: '请输入用户名称', trigger: ['input', 'blur'] },
|
||||||
{ min: 3, max: 64, message: '用户名长度为3到64个字符', trigger: ['input', 'blur'] },
|
{ min: 2, max: 64, message: '用户名长度为2到64个字符', trigger: ['input', 'blur'] },
|
||||||
],
|
],
|
||||||
mobile: {
|
mobile: {
|
||||||
validator: () => true,
|
validator: () => true,
|
||||||
|
|||||||
Reference in New Issue
Block a user