1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00

Enabled registering through the API

This commit is contained in:
Hillel Coren 2016-03-08 23:34:59 +02:00
parent b9bbec8d9d
commit 7ee4219480

View File

@ -59,7 +59,7 @@ class AccountRepository
}
$user->confirmed = !Utils::isNinja();
$user->registered = !Utils::isNinja() && $user->email;
$user->registered = !Utils::isNinja() || $email;
if (!$user->confirmed) {
$user->confirmation_code = str_random(RANDOM_KEY_LENGTH);