Reference - SS.control.passwordmeter - Password Meter
Control that graphically displays how secure the password being entered is.
e.g.
<input type="password" id="txtPassword" />
<div ext="passwordmeter" id="pmMeter" linkto="txtPassword">
</div>
Attributes:
Functions:
Members:
Attributes
css
ClassName Style
Style applied to the whole of the Password Meter Control
s - {String} (default = "SS_control_passwordmeter")
v1.0.1.20080729
[Top]
css_bar
Bar ClassName Style
Default style applied to the bar meter in the Password Meter Control.
s - {String} (default = "SS_control_passwordmeter_bar")
v1.0.1.20080729
[Top]
css_error
Password Error ClassName Style
Style applied to the text message in the Password Meter Control when the password is
in the error state i.e. too short, too long, or does not match the regular expression.
s - {String} (default = "SS_control_passwordmeter_strong")
v1.0.1.20080729
[Top]
css_medium
Password Medium ClassName Style
Style applied to the text message in the Password Meter Control when is strength of the password
is deemed to be medium.
s - {String} (default = "SS_control_passwordmeter_medium")
v1.0.1.20080729
[Top]
css_strong
Password Strong ClassName Style
Style applied to the text message in the Password Meter Control when is strength of the password
is deemed to be strong.
s - {String} (default = "SS_control_passwordmeter_strong")
v1.0.1.20080729
[Top]
css_text
Text ClassName Style
Default style applied to the text message in the Password Meter Control.
s - {String} (default = "SS_control_passwordmeter_text")
v1.0.1.20080729
[Top]
css_weak
Password Weak ClassName Style
Style applied to the text message in the Password Meter Control when is strength of the password
is deemed to be weak.
s - {String} (default = "SS_control_passwordmeter_weak")
v1.0.1.20080729
[Top]
linkto
Link To Control Id
Links the value entered into the password field to the Password Meter. This is needed so that the
onkeypress and onkeydown events on the input field
can be set to show the current strength of the password.
s - {String} - Id of the control to link to
v1.0.1.20080729
[Top]
maxlength
Maximum Password Length
Maximum length the password should be. If the password exceeds the maximum
length value, the password is deemed invalid causing the message held in
msg_long to be displayed. The password strength
meter bar is styled using the style held in css_error.
Set maxlength=0 (default) to disable.
v - {Integer} (default = 0)
v1.0.1.20080729
[Top]
minlength
Minimum Password Length
Minimum length the password should be. If the password is less than the minimum
length value, the password is deemed invalid causing the message held in
msg_short to be displayed. The password strength
meter bar is styled using the style held in css_error.
Set minlength=0 to disable.
v - {Integer} (default = 6)
v1.0.1.20080729
[Top]
msg_invalid
Invalid Error Message
Holds the error message to be displayed when the password is
deemed invalid against the regular expression held in
regex.
s - {String} (default = "Invalid Password")
v1.0.1.20080729
[Top]
msg_long
Password Too Long Error Message
Holds the error message to be displayed when the password entered exceeds
the length specified in maxlength.
s - {String} (default = "Too Long")
v1.0.1.20080729
[Top]
msg_medium
Password is Medium Strength Message
Holds the message to be displayed when the password is deemed to be
"medium" strength. Use the value in weight to adjust
the trigger point for the password to be marked as medium.
s - {String} (default = "Medium")
v1.0.1.20080729
[Top]
msg_short
Password Too Short Error Message
Holds the error message to be displayed when the password entered is less than
the length specified in minlength.
s - {String} (default = "Too Short")
v1.0.1.20080729
[Top]
msg_strong
Password is Strong Strength Message
Holds the message to be displayed when the password is deemed to be
"strong" strength. Use the value in weight to adjust
the trigger point for the password to be marked as strong.
s - {String} (default = "Strong")
v1.0.1.20080729
[Top]
msg_weak
Password is Weak Strength Message
Holds the message to be displayed when the password is deemed to be
"weak" strength. Use the value in weight to adjust
the trigger point for the password to be marked as weak.
s - {String} (default = "Weak")
v1.0.1.20080729
[Top]
regex
Password Input Format
Defines what characters are allowed to be including in the password. If
the password entered does cannot be matched using the Regular Expression specified
here then the password is state is set to invalid and the appropriate message is displayed. The
default setting allows almost all type-able characters to be included in the password.
E.g. Using the regular expression "[a-zA-Z0-9]*" will only allow alpha-numeric passwords. Any other character such as "!" would cause the password to be marked as invalid
E.g. Using the regular expression "[a-zA-Z0-9]*" will only allow alpha-numeric passwords. Any other character such as "!" would cause the password to be marked as invalid
s - {String:Regular Expression} (default = "^.*$")
v1.0.1.20080729
[Top]
weight
Password Strength Weighting
The value set in this attribute is used to calculate the strength of the password.
The higher the value, the least number of characters and range of characters is needed
for the password to be deemed "strong". Decreasing the value will require the input of longer
more complex passwords before they are deemed "strong".
v - {Float} (default = 0.12)
v1.0.1.20080729
[Top]
Functions
calcStrength() : {Integer}
Calculate the strength of the password
Returns the strength of the password in the range of -1 to 100 where -1 is invalid,
0 = weakest, 100 = strongest.
{Integer}
v1.0.1.20080729
[Top]
Members
pass
Password Value
Holds the password that has been entered.
v1.0.1.20080729
[Top]
value
Strength Value
Holds an integer value between -1 (error) to 100 indicating the strength of the
password where 0 is "weak" and 100 is "strong".
v1.0.1.20080729
[Top]