mirror of https://github.com/jumpserver/jumpserver
Merge pull request #10621 from jumpserver/pr@dev@fix_static_js
fix: 修复 jumpserver.js 文件中 rules_id_map_label 变量缺失引起的用户初次登录修改密码表单无法校验提示的错误pull/10602/head
commit
cc57fcacce
|
@ -895,6 +895,14 @@ var rules_short_map_id = {
|
|||
'special': 'id_security_password_special_char'
|
||||
};
|
||||
|
||||
var rules_id_map_label = {
|
||||
'id_security_password_min_length': gettext('Password minimum length {N} bits'),
|
||||
'id_security_password_upper_case': gettext('Must contain capital letters'),
|
||||
'id_security_password_lower_case': gettext('Must contain lowercase letters'),
|
||||
'id_security_password_number': gettext('Must contain numeric characters'),
|
||||
'id_security_password_special_char': gettext('Must contain special characters')
|
||||
};
|
||||
|
||||
function getRuleLabel(rule) {
|
||||
var label = '';
|
||||
if (rule.key === rules_short_map_id['min']) {
|
||||
|
|
Loading…
Reference in New Issue