diff --git a/lib/steps/text/TextStep.js b/lib/steps/text/TextStep.js index c160d29..3dbed1b 100644 --- a/lib/steps/text/TextStep.js +++ b/lib/steps/text/TextStep.js @@ -49,6 +49,10 @@ class TextStep extends Component { message = message.replace(/{previousValue}/g, previousValue); + if(step.inputAttributes && step.inputAttributes.secureTextEntry){ + return '*'.repeat(message.length) + } + return message; }