set decline_reason to NULL to not be printed when unset; try to fix unaccessible

This commit is contained in:
2018-03-03 16:02:39 +01:00
parent e92c197e59
commit 379aa26e6d
2 changed files with 5 additions and 5 deletions

View File

@@ -151,12 +151,12 @@ class mxDatabase
*/
function addRegistration($first_name, $last_name, $username, $note, $email) {
if ($this->userPendingRegistrations($username)) {
require_once "language.php";
throw new Exception($language["USERNAME_PENDING_REGISTRATION"]);
require_once("language.php");
throw new Exception($language["USERNAME_PENDING_REGISTRATION"]." (requested)");
}
if ($this->userRegistered($username)) {
require_once "language.php";
throw new Exception($language["USERNAME_REGISTERED"]);
require_once("language.php");
throw new Exception($language["USERNAME_REGISTERED"] . " (registered)");
}
$verify_token = bin2hex(random_bytes(16));