undid number removal

This commit is contained in:
jvvg 2013-06-28 12:58:09 -04:00
parent 815cb28fb5
commit cd2056f4ab
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ class AccountRequestSubmission {
} }
//before we continue, verify user //before we continue, verify user
$code = preg_replace('%\d+%', '', sha1($_SERVER['REMOTE_ADDR'] . date('m'))); $code = sha1($_SERVER['REMOTE_ADDR'] . date('m'));
$data = file_get_contents('http://scratch.mit.edu/site-api/comments/project/10135908/?page=1&salt=' . md5(time())); //add the salt so it doesn't cache $data = file_get_contents('http://scratch.mit.edu/site-api/comments/project/10135908/?page=1&salt=' . md5(time())); //add the salt so it doesn't cache
if (!$data) { if (!$data) {
return array('api_failed', 'Accessing the API to verify your registration failed. Please try again later.'); return array('api_failed', 'Accessing the API to verify your registration failed. Please try again later.');

View file

@ -212,7 +212,7 @@ class RequestAccountPage extends SpecialPage {
//Scratch user verification //Scratch user verification
$form .= '<fieldset>'; $form .= '<fieldset>';
$form .= '<legend>User verification</legend>'; $form .= '<legend>User verification</legend>';
$form .= '<p>Please go to the <a href="http://scratch.mit.edu/projects/10135908/">user verification project</a> and comment the following code:<br /><b>' . preg_replace('%\d+%', '', sha1($_SERVER['REMOTE_ADDR'] . date('m'))) . '</b></p>' . "\n"; $form .= '<p>Please go to the <a href="http://scratch.mit.edu/projects/10135908/">user verification project</a> and comment the following code:<br /><b>' . sha1($_SERVER['REMOTE_ADDR'] . date('m')) . '</b></p>' . "\n";
$form .= '</fieldset>'; $form .= '</fieldset>';
//Set temporary password //Set temporary password