Explorar o código

Changed on Login Stuff and visibility control.

jason.lu %!s(int64=6) %!d(string=hai) anos
pai
achega
5f04adc563
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      js/basic.js

+ 3 - 0
js/basic.js

@@ -381,6 +381,9 @@ function getUserId() {
 
     try{
         var mm = parseInt(use);
+        if(mm <= 0){
+            location.href = "sign-in1.html?from=entrance-1&msg=cookie-wrong-format";
+        }
     }catch (e) {
         location.href = "sign-in1.html?from=entrance-1&msg=cookie-wrong-format";
         return;