Added comment on password checks
MODIFY
src/server/rest/v1/service/UtilsService.ts
src/server/rest/v1/service/UtilsService.ts
@@ -1324,6 +1324,7 @@ export default class UtilsService {
actionOnUser: filteredRequest.id
});
}
+ // Check for mandatory password if user is created, and check for password validity if user's password is updated
if ((req.method === 'POST' && (!filteredRequest.password || !Utils.isPasswordValid(filteredRequest.password))) || filteredRequest.password && !Utils.isPasswordValid(filteredRequest.password)) {
throw new AppError({
source: Constants.CENTRAL_SERVER,

Added comment on password checks