Use helper to filter boolean in security class
MODIFY
src/server/rest/v1/service/AuthService.ts
src/server/rest/v1/service/AuthService.ts
@@ -575,7 +575,9 @@ export default class AuthService {
tenantID: tenantID,
user: user, action: action,
module: MODULE_NAME, method: 'handleVerifyEmail',
- message: userStatus === UserStatus.ACTIVE ? 'User account has been successfully verified and activated' : 'User account has been successfully verified but needs an admin to activate it',
+ message: userStatus === UserStatus.ACTIVE ?
+ 'User account has been successfully verified and activated' :
+ 'User account has been successfully verified but needs an admin to activate it',
detailedMessages: { params: req.query }
});
// Ok

MODIFY
src/server/rest/v1/service/security/SettingSecurity.ts
src/server/rest/v1/service/security/SettingSecurity.ts
@@ -190,7 +190,7 @@ export default class SettingSecurity {
break;
case UserSettingsType.USER:
settings.content.user = {
- autoActivateAccountAfterValidation: sanitize(request.content.user.autoActivateAccountAfterValidation)
+ autoActivateAccountAfterValidation: UtilsSecurity.filterBoolean(request.content.user.autoActivateAccountAfterValidation)
};
break;
}

Use helper to filter boolean in security class