fix bug beim aufruf von generateToken()

This commit is contained in:
bernd 2021-03-01 17:45:08 +01:00
parent 9aa6fe96d8
commit baafad49ed
2 changed files with 2 additions and 2 deletions

View file

@ -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!";

View file

@ -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;