Merge pull request #10621 from jumpserver/pr@dev@fix_static_js

fix: 修复 jumpserver.js 文件中 rules_id_map_label 变量缺失引起的用户初次登录修改密码表单无法校验提示的错误
pull/10602/head
老广 2023-06-07 10:36:25 +08:00 committed by GitHub
commit cc57fcacce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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']) {