secrets on review page show constant asterisks value
Signed-off-by: Stephen Glass <stephen@stephen.glass>
This commit is contained in:
@@ -52,7 +52,10 @@ function processSchema(
|
||||
}
|
||||
}
|
||||
|
||||
if (definitionInSchema['ui:widget'] === 'password') {
|
||||
if (
|
||||
definitionInSchema['ui:widget'] === 'password' ||
|
||||
definitionInSchema['ui:field']?.toLocaleLowerCase('en-us') === 'secret'
|
||||
) {
|
||||
return [[getLastKey(key), '******']];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user