Commit d9023da9 authored by Patricio Cano's avatar Patricio Cano

Refactored password_strength configuration

parent bf07fcf0
...@@ -5,28 +5,24 @@ overwritten_messages = ...@@ -5,28 +5,24 @@ overwritten_messages =
overwritten_rules = overwritten_rules =
wordSequences: false wordSequences: false
$(document).ready -> options =
profileOptions = {}
profileOptions.ui =
showProgressBar: false showProgressBar: false
showVerdicts: false showVerdicts: false
showPopover: true showPopover: true
showErrors: true showErrors: true
showStatus: true showStatus: true
errorMessages: overwritten_messages errorMessages: overwritten_messages
$(document).ready ->
profileOptions = {}
profileOptions.ui = options
profileOptions.rules = profileOptions.rules =
activated: overwritten_rules activated: overwritten_rules
deviseOptions = {} deviseOptions = {}
deviseOptions.common = deviseOptions.common =
usernameField: "#user_username" usernameField: "#user_username"
deviseOptions.ui = deviseOptions.ui = options
showPopover: true
showErrors: true
showVerdicts: false
showProgressBar: false
showStatus: true
errorMessages: overwritten_messages
deviseOptions.rules = deviseOptions.rules =
activated: overwritten_rules activated: overwritten_rules
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment