|
|
@ -44,9 +44,9 @@ if (isset($_GET['secret']) && $_GET['secret'] === REGISTRATION_PASSWORD) {
|
|
|
|
'nonce' => $_POST['nonce'],
|
|
|
|
'nonce' => $_POST['nonce'],
|
|
|
|
'username' => $username,
|
|
|
|
'username' => $username,
|
|
|
|
'password' => $_POST['password'],
|
|
|
|
'password' => $_POST['password'],
|
|
|
|
'admin' => 'notadmin'
|
|
|
|
'admin' => false
|
|
|
|
];
|
|
|
|
];
|
|
|
|
$content['mac'] = hash_hmac('sha1', $content['nonce']."\0".$content['username']."\0".$content['password']."\0".$content['admin'], REGISTRATION_SHARED_SECRET);
|
|
|
|
$content['mac'] = hash_hmac('sha1', $content['nonce']."\0".$content['username']."\0".$content['password']."\0".'notadmin', REGISTRATION_SHARED_SECRET);
|
|
|
|
|
|
|
|
|
|
|
|
# debug
|
|
|
|
# debug
|
|
|
|
echo '<!--';
|
|
|
|
echo '<!--';
|
|
|
|