mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Enabled registering through the API
This commit is contained in:
parent
b9bbec8d9d
commit
7ee4219480
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user