widgets/SecurePass.js
[Pman.Core] / widgets / SecurePass.js
index b64db7c..fee816f 100644 (file)
@@ -2,7 +2,22 @@
 //<script type="text/Javascript">
 
 
+Ext.form.SecurePass = function(config) {
+       // these go here, so the translation tool can replace them..
+    this.errors = {
+               PwdEmpty: "Please type a password, and then retype it to confirm.",
+               PwdShort: "Your password must be at least 6 characters long. Please type a different password.",
+               PwdLong: "Your password can't contain more than 16 characters. Please type a different password.",
+               PwdBadChar: "The password contains characters that aren't allowed. Please type a different password.",
+               IDInPwd: "Your password can't include the part of your ID. Please type a different password.",
+               FNInPwd: "Your password can't contain your first name. Please type a different password.",
+               LNInPwd: "Your password can't contain your last name. Please type a different password.",
+        TooWeak: "Your password is Too Weak."
+       },
+    this.meterLabel = "Password strength:";
+    this.pwdStrengths = ["Too Weak" , "Weak", "Medium", "Strong"];
+    Ext.form.SecurePass.superclass.constructor.call(this, config);
+}
 
 Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
-   
 })
\ No newline at end of file