removed code-list. This is already integrated into the vault

This commit is contained in:
2020-10-04 18:51:02 +02:00
parent 2b739f3d8b
commit ea411db764
2 changed files with 0 additions and 4 deletions

View File

@@ -46,7 +46,6 @@ Der Ausfbau der mail.txt ist:
``` ```
Es werden drei Ausgaben erzeugt: Es werden drei Ausgaben erzeugt:
- List aller Codes
- Eine RegEx vorlage für alle Codes - Eine RegEx vorlage für alle Codes
- Safe-Datei - Safe-Datei

View File

@@ -38,7 +38,6 @@ async function generateCodes(resolve: (value?: genReturn) => void,error: (reason
let codeArray: string[] = []; let codeArray: string[] = [];
let checkString: string = ''; let checkString: string = '';
let listString: string = '';
for(let i = 0; i < mailArray.length; i++){ // as many codes as adresses for(let i = 0; i < mailArray.length; i++){ // as many codes as adresses
// check that codes are unique // check that codes are unique
@@ -48,12 +47,10 @@ async function generateCodes(resolve: (value?: genReturn) => void,error: (reason
}while ( (config.force ? codeArray : [...codeArray, ...config.usedTokens]).includes(code)) }while ( (config.force ? codeArray : [...codeArray, ...config.usedTokens]).includes(code))
codeArray.push(code); codeArray.push(code);
checkString = `${checkString}|${code}` checkString = `${checkString}|${code}`
listString = `${listString}\n${code}`
position ++; position ++;
pbar.update(position); pbar.update(position);
} }
checkString = checkString.substr(1); checkString = checkString.substr(1);
listString = listString.substr(1);
pbar.stop(); pbar.stop();
//write code lists //write code lists
try { try {