diff options
author | ache <ache@ache.one> | 2018-01-17 00:33:57 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2018-01-17 00:33:57 +0100 |
commit | faf86a6a666f0af3b443af681a13add399a39b9d (patch) | |
tree | ea2552217de79f28d1428f3a5a7fb6e2deeaf320 | |
parent | Arg gestion (diff) |
Password support
-rw-r--r-- | app.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -175,7 +175,9 @@ function plugin() { /* istanbul ignore if - never used (yet) */ if (silent) return true; - prop['type'] = 'text'; + if( prop['type'] != 'password' ) + prop['type'] = 'text'; + prop['placeholder'] = subvalue.replace(/^_*/g, '').replace(/_*$/g, ''), console.log(prop); |