X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=e3abaa9d6cd0832bdefc93d239700df776d80043;hb=578fd5336a0555a04aee417bc74825706de8f42d;hp=f971277947f8b66c7d81acd1003954463977fe3a;hpb=9c96c38b48ab376e202045407786dbcf553febb2;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index f971277..e3abaa9 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -3540,6 +3540,9 @@ function carousel_top() } } +/* function login_consistency: + name length must be less or equal than 12 chars, + no more than 2 consecutive same character (or generic digits) are allowed */ function login_consistency($name) { $old_c = ''; @@ -3550,6 +3553,9 @@ function login_consistency($name) for ($i = 0 ; $i < mb_strlen($name) ; $i++) { $c = mb_substr($name, $i, 1); if (mb_ereg_match ("[a-zA-Z0-9]", $c)) { + if (mb_ereg_match ("[0-9]", $c)) { + $c = "0"; + } if ($old_c != $c) { $old_c = $c; $old_ct = 1;