forgot some "accountActivation"
MODIFY
src/server/rest/v1/service/AuthService.ts
src/server/rest/v1/service/AuthService.ts
@@ -653,8 +653,8 @@ export default class AuthService {
message: 'Wrong Verification Token'
});
}
- const accountActivationSetting = await SettingStorage.getSettingByIdentifier(tenantID, UserSettingsType.USER);
- const userStatus = accountActivationSetting.content.accountActivation.doNotActivateByDefault ? UserStatus.INACTIVE : UserStatus.ACTIVE;
+ const userSetting = await SettingStorage.getSettingByIdentifier(tenantID, UserSettingsType.USER);
+ const userStatus = userSetting.content.accountActivation.doNotActivateByDefault ? UserStatus.INACTIVE : UserStatus.ACTIVE;
// Save User Status
await UserStorage.saveUserStatus(tenantID, user.id, userStatus);
// For integration with billing

MODIFY
src/storage/mongodb/SettingStorage.ts
src/storage/mongodb/SettingStorage.ts
@@ -336,7 +336,7 @@ export default class SettingStorage {
}
public static async getUserSettings(tenantID: string): Promise<UserSetting> {
- // Get the account activation settings
+ // Get the user settings
const settings = await SettingStorage.getSettings(tenantID,
{ identifier: UserSettingsType.USER },
Constants.DB_PARAMS_MAX_LIMIT);

MODIFY
src/types/TenantComponents.ts
src/types/TenantComponents.ts
@@ -9,6 +9,6 @@ enum TenantComponents {
ASSET = 'asset',
SMART_CHARGING = 'smartCharging',
CAR = 'car',
- CRYPTO = 'crypto',
+ CRYPTO = 'crypto'
}
export default TenantComponents;

forgot some "accountActivation"