mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-06 18:00:57 +00:00
[Update] 创建/更新用户的role选项;密码强度提示信息中英文; (#1623)
* [Update] 修改 超级管理员/组织管理员 在 创建/更新 用户时role的选项 问题 * [Update] 用户密码强度提示信息支持中英文
This commit is contained in:
@@ -685,7 +685,7 @@ function popoverPasswordRules(password_check_rules, $el) {
|
||||
}
|
||||
|
||||
// 初始化弹窗popover
|
||||
function initPopover($container, $progress, $idPassword, $el, password_check_rules){
|
||||
function initPopover($container, $progress, $idPassword, $el, password_check_rules, i18n_fallback){
|
||||
options = {};
|
||||
// User Interface
|
||||
options.ui = {
|
||||
@@ -697,6 +697,14 @@ function initPopover($container, $progress, $idPassword, $el, password_check_rul
|
||||
showProgressbar: true,
|
||||
showVerdictsInsideProgressBar: true
|
||||
};
|
||||
options.i18n = {
|
||||
fallback: i18n_fallback,
|
||||
t: function (key) {
|
||||
var result = '';
|
||||
result = options.i18n.fallback[key];
|
||||
return result === key ? '' : result;
|
||||
}
|
||||
};
|
||||
$idPassword.pwstrength(options);
|
||||
popoverPasswordRules(password_check_rules, $el);
|
||||
}
|
||||
|
Reference in New Issue
Block a user