diff --git a/ConfirmAccount/business/AccountRequestSubmission.php b/ConfirmAccount/business/AccountRequestSubmission.php index c54f306..376c7f1 100644 --- a/ConfirmAccount/business/AccountRequestSubmission.php +++ b/ConfirmAccount/business/AccountRequestSubmission.php @@ -90,7 +90,7 @@ class AccountRequestSubmission { } //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 if (!$data) { return array('api_failed', 'Accessing the API to verify your registration failed. Please try again later.'); diff --git a/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php b/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php index 34e0701..20be5e0 100644 --- a/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php +++ b/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php @@ -212,7 +212,7 @@ class RequestAccountPage extends SpecialPage { //Scratch user verification $form .= '
'; $form .= 'User verification'; - $form .= '

Please go to the user verification project and comment the following code:
' . preg_replace('%\d+%', '', sha1($_SERVER['REMOTE_ADDR'] . date('m'))) . '

' . "\n"; + $form .= '

Please go to the user verification project and comment the following code:
' . sha1($_SERVER['REMOTE_ADDR'] . date('m')) . '

' . "\n"; $form .= '
'; //Set temporary password