if( (pw = patron.day_phone()) ||
(pw = patron.evening_phone()) || (pw = patron.other_phone()) ) {
pw = pw.substring(pw.length - 4); // this is iffy
- uEditResetPw(pw);
- appendClear($('ue_password_plain'), text(pw));
- unHideMe($('ue_password_gen'));
+ appendClear($('ue_password_plain'), text(pw));
+ unHideMe($('ue_password_gen'));
}
} else {
pw = uEditMakeRandomPw(patron);
}
- $('ue_password1').value = pw;
- $('ue_password2').value = pw;
- $('ue_password1').onchange();
}
+ $('ue_password1').value = pw;
+ $('ue_password2').value = pw;
+ $('ue_password1').onchange();
}
type : 'input',
regex : phoneRegex,
onblur : function() {
- if(uEditUsePhonePw)
+ if(uEditUsePhonePw && patron.isnew())
uEditMakePhonePw();
},
onpostchange: function(field, newval) {
type : 'input',
regex : phoneRegex,
onblur : function() {
- if(uEditUsePhonePw)
+ if(uEditUsePhonePw && patron.isnew())
uEditMakePhonePw();
}
}
type : 'input',
regex : phoneRegex,
onblur : function() {
- if(uEditUsePhonePw)
+ if(uEditUsePhonePw && patron.isnew())
uEditMakePhonePw();
}
}