Post
Topic
Board Bitcoin Technical Support
Re: Pushpool - Tech Support | Web design donation pot: 4.15 BTC
by
genewitch
on 12/06/2011, 02:00:11 UTC
the pin cannot start with 0. if you try it throws invalid pin. probably because whatever command php uses to determine the length cuts leading zeros.
bug just cost me a pool worker :-(

in register.php (onyl one i looked at) look for this section
Code:
$authPin        = (int) $_POST["authPin"];

change to:
Code:
$authPin        = (string) $_POST["authPin"];

look for:
Code:
//valid date authpin is valid

change the block under it to read:
Code:
//valid date authpin is valid
                        if(strlen($authPin) >= 4){
                                if(!is_numeric($authPin)){
                                        $validRegister = 0;
                                        $returnError .= " | Not a valid authpin";
                                }
                        }else{
                                $validRegister = 0;
                                $returnError .= " | Authorization pin number is not valid";
                        }


verified myself this time.  Roll Eyes