feat(xo-server/sensitive-values): make obfuscated value obvious

This commit is contained in:
Julien Fontanet 2020-10-01 15:01:21 +02:00
parent 83ea57d825
commit 3616b7a67b

View File

@ -1,7 +1,7 @@
import mapValues from 'lodash/mapValues' import mapValues from 'lodash/mapValues'
// this random value is used to obfuscate real data // this random value is used to obfuscate real data
const OBFUSCATED_VALUE = 'q3oi6d9X8uenGvdLnHk2' const OBFUSCATED_VALUE = 'obfuscated-q3oi6d9X8uenGvdLnHk2'
export const merge = (newValue, oldValue) => { export const merge = (newValue, oldValue) => {
if (newValue === OBFUSCATED_VALUE) { if (newValue === OBFUSCATED_VALUE) {