Add min characters to password
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user