@@ -19,7 +19,9 @@ General purpose password field component.
1919 <NcPasswordField id="textField"
2020 v-model="text2"
2121 :label-outside="true"
22- placeholder="Min. 12 characters" />
22+ placeholder="Min. 12 characters"
23+ :success="true"
24+ helper-text="Password is secure" />
2325 </div>
2426 <div class="external-label">
2527 <label for="textField2">New password</label>
@@ -32,10 +34,9 @@ General purpose password field component.
3234 </div>
3335
3436 <NcPasswordField v-model="text4"
35- label="Good new password"
36- :success="true"
37- placeholder="Min. 12 characters"
38- helper-text="Password is secure" />
37+ label="Validate new password"
38+ check-password-strength
39+ placeholder="Min. 12 characters" />
3940
4041 <NcPasswordField v-model="text5"
4142 :disabled="true"
@@ -51,7 +52,7 @@ export default {
5152 data() {
5253 return {
5354 text1: '',
54- text2: '',
55+ text2: 'FWZxt29XEoTQfnBEa ',
5556 text3: 'hunter',
5657 text4: '',
5758 text5: '',
@@ -324,10 +325,10 @@ export default {
324325
325326 watch: {
326327 model (newValue ) {
327- if ( this . checkPasswordStrength ) {
328- if (passwordPolicy === null ) {
329- return
330- }
328+ // Reset internal validation state on value change
329+ this . isValid = undefined
330+ this . internalHelpMessage = ' '
331+ if (newValue && this . checkPasswordStrength ) {
331332 this .checkPassword (newValue)
332333 }
333334 },
0 commit comments