Add min characters to password

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-02-06 18:55:58 +04:00
parent dd207525a5
commit abba30fde3
+6
View File
@@ -154,6 +154,12 @@ function Koneksyon({chimen}) {
return return
} }
if (registerCredentials.password.length < 6) {
setError('Le mot de passe est trop court, 6 caratères minimum')
setLoading(false)
return
}
await register() await register()
setLoading(false) setLoading(false)
} }