reject whitespace characters in password regexp (#22232)
This commit is contained in:
parent
817071e448
commit
7f5087c6db
6 changed files with 7 additions and 10 deletions
|
|
@ -11,8 +11,7 @@ import Button from '@/app/components/base/button'
|
|||
import { changePasswordWithToken, verifyForgotPasswordToken } from '@/service/common'
|
||||
import Toast from '@/app/components/base/toast'
|
||||
import Loading from '@/app/components/base/loading'
|
||||
|
||||
const validPassword = /^(?=.*[a-zA-Z])(?=.*\d).{8,}$/
|
||||
import { validPassword } from '@/config'
|
||||
|
||||
const ChangePasswordForm = () => {
|
||||
const { t } = useTranslation()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue