diff --git a/lib/register.php b/lib/register.php index 2aa55ca..64a6d97 100644 --- a/lib/register.php +++ b/lib/register.php @@ -36,7 +36,7 @@ class Registrator extends BaseClass { $this->log->d("Validation started for token: {$_GET['token']}"); if ($this->checkToken() === true) { - if ($this->generateToken($token, 32) === true) { + if ($this->generateToken(32) === true) { if ($this->registerMXID() === true) { $message = "Your temporary password is {$tmp_passwd}. Please immediately change your password!"; diff --git a/lib/request.php b/lib/request.php index c1509b8..889abad 100644 --- a/lib/request.php +++ b/lib/request.php @@ -49,7 +49,7 @@ class Request extends BaseClass { $message = "User Id is already taken"; return false; } else { - if ($this->generateToken($token, 16) === true) { + if ($this->generateToken(16) === true) { if ($this->saveRequest() === true) { if ($this->sendVerificationMail() === true) { return true;