Don't default to unprovisioned for basic/simple provisioning backend

This commit is contained in:
Bruno Bernardino 2022-05-13 11:22:28 +01:00
parent 905802acc5
commit 574142ab64
No known key found for this signature in database
GPG Key ID: D1B0A69ADD114ECE
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ export class AccountProvisioning extends Storable {
accountId?: AccountID = undefined;
status: ProvisioningStatus = ProvisioningStatus.Unprovisioned;
status: ProvisioningStatus = ProvisioningStatus.Active;
statusLabel: string = "";

View File

@ -657,7 +657,7 @@ export class Controller extends API {
const auth = (this.context.auth = await this._getAuth(account.email));
this.context.provisioning = await this.provisioner.getProvisioning(auth);
// Make sure that no account with this email exists and that the email is not blocked from singing up
// Make sure that no account with this email exists and that the email is not blocked from signing up
if (auth.account) {
throw new Err(ErrorCode.ACCOUNT_EXISTS, "This account already exists!");
}