From abba30fde33d759f7879cc7cb5724a64c298778e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sun, 6 Feb 2022 18:55:58 +0400 Subject: [PATCH] Add min characters to password --- components/sesyon/koneksyon.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/sesyon/koneksyon.js b/components/sesyon/koneksyon.js index de2071f..d3bc5fb 100644 --- a/components/sesyon/koneksyon.js +++ b/components/sesyon/koneksyon.js @@ -154,6 +154,12 @@ function Koneksyon({chimen}) { return } + if (registerCredentials.password.length < 6) { + setError('Le mot de passe est trop court, 6 caratères minimum') + setLoading(false) + return + } + await register() setLoading(false) }