X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=e3abaa9d6cd0832bdefc93d239700df776d80043;hb=92fff75b6f3b7c1f27bd6e455c483a94fb2ae89f;hp=f971277947f8b66c7d81acd1003954463977fe3a;hpb=adb91169157a99dd0e6d5ebe2ee87c4222d49309;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;