feat(app): migrate auth pages to Vue SPA (stage 2)
This commit is contained in:
7
app-frontend/src/utils/password.js
Normal file
7
app-frontend/src/utils/password.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export function validateStrongPassword(value) {
|
||||
const text = String(value || '')
|
||||
if (text.length < 8) return { ok: false, message: '密码长度至少8位' }
|
||||
if (!/[a-zA-Z]/.test(text) || !/\d/.test(text)) return { ok: false, message: '密码必须包含字母和数字' }
|
||||
return { ok: true, message: '' }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user