File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ Interactive password strength meter based on [zxcvbn](https://github.com/dropbox
117
117
| labelHide | String | 'Hide Password' | Label for the hide icon
118
118
| labelShow | String | 'Show Password' | Label for the show icon
119
119
| autocomplete | String | 'new-password' | Input field autocomplete property
120
+ | userInput | Array | empty array | Array of strings that zxcvbn will treat as an extra dictionary
120
121
121
122
## Events
122
123
Original file line number Diff line number Diff line change 250
250
labelHide: {
251
251
type: String ,
252
252
default: ' Hide Password'
253
+ },
254
+ /**
255
+ * @type String
256
+ */
257
+ userInputs: {
258
+ type: Array ,
259
+ default: []
253
260
}
254
261
},
255
262
data () {
281
288
* @return {Number} Password Strength Score
282
289
*/
283
290
passwordStrength () {
284
- return this .password ? zxcvbn (this .password ).score : null
291
+ return this .password ? zxcvbn (this .password , ( this . userInputs . length >= 1 ? this . userInputs : null ) ).score : null
285
292
},
286
293
287
294
/**
You can’t perform that action at this time.
0 commit comments