blob: e6fec307c596a06fd284583eff0b78dbb05ee22e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
overwritten_messages =
wordSimilarToUsername: "Your password should not contain your username"
overwritten_rules =
wordSequences: false
$(document).ready ->
profileOptions = {}
profileOptions.ui =
container: "#password-strength"
showVerdictsInsideProgressBar: true
showPopover: true
showErrors: true
errorMessages: overwritten_messages
profileOptions.rules =
activated: overwritten_rules
signUpOptions = {}
signUpOptions.common =
usernameField: "#user_username"
signUpOptions.ui =
container: "#password-strength"
showPopover: true
showErrors: true
showVerdicts: false
showProgressBar: false
showStatus: true
errorMessages: overwritten_messages
signUpOptions.rules =
activated: overwritten_rules
$("#user_password").pwstrength profileOptions
$("#user_password_sign_up").pwstrength signUpOptions
|