Lines 1238-1245
Link Here
|
1238 |
var default_strong_password = [% defaultCategory.effective_require_strong_password | html %]; |
1238 |
var default_strong_password = [% defaultCategory.effective_require_strong_password | html %]; |
1239 |
$(document).ready(function() { |
1239 |
$(document).ready(function() { |
1240 |
var setPwdMessage = function() { |
1240 |
var setPwdMessage = function() { |
1241 |
var require_strong = $('select#borrower_categorycode option:selected').data('pwdStrong')||default_strong_password; |
1241 |
var require_strong = $('select#borrower_categorycode option:selected').length ? $('select#borrower_categorycode option:selected').data('pwdStrong') : default_strong_password; |
1242 |
var min_lenght = $('select#borrower_categorycode option:selected').data('pwdLength')||default_password_length; |
1242 |
var min_lenght = $('select#borrower_categorycode option:selected').length ? $('select#borrower_categorycode option:selected').data('pwdLength') : default_password_length; |
1243 |
$('#password_alert').html((require_strong?PWD_STRONG_MSG:PWD_WEAK_MSG).format(min_lenght)); |
1243 |
$('#password_alert').html((require_strong?PWD_STRONG_MSG:PWD_WEAK_MSG).format(min_lenght)); |
1244 |
}; |
1244 |
}; |
1245 |
setPwdMessage(); |
1245 |
setPwdMessage(); |
1246 |
- |
|
|