fix SonarCube issues
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -10,9 +10,9 @@ export const load: LayoutServerLoad = async ({ params, cookies, locals }) => {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const vorgangToken = params.vorgang || '';
|
const vorgangToken = params.vorgang ?? '';
|
||||||
const COOKIE_NAME = `token-${vorgangToken}`;
|
const COOKIE_NAME = `token-${vorgangToken}`;
|
||||||
const vorgangPIN = cookies.get(COOKIE_NAME) || '';
|
const vorgangPIN = cookies.get(COOKIE_NAME) ?? '';
|
||||||
|
|
||||||
const isVorgangValid = vorgangExists(vorgangToken);
|
const isVorgangValid = vorgangExists(vorgangToken);
|
||||||
const isVorgangPINValid = vorgangPINValidation(vorgangToken, vorgangPIN);
|
const isVorgangPINValid = vorgangPINValidation(vorgangToken, vorgangPIN);
|
||||||
|
|||||||
Reference in New Issue
Block a user