mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-03 18:40:46 +08:00
feat: enforce username length
This commit is contained in:
@@ -120,6 +120,8 @@ export default {
|
||||
}
|
||||
if (!this.username) {
|
||||
this.usernameError = '用户名不能为空'
|
||||
} else if (this.username.length < 6) {
|
||||
this.usernameError = '用户名至少6位'
|
||||
}
|
||||
if (this.emailError || this.passwordError || this.usernameError) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user