rbac/wwwroot/admin_reset_password.ui
yumoqing c572d4c254 fix(users): replace script handlers with declarative urlwidget binds
- reset_password: urlwidget + PopupWindow Form (same pattern as userrole),
  hidden userid field from params_kw, password fields with required validation
- clear_login_fail: urlwidget + conform dialog, params_mapping id only
- fixes runtime crash: script bind called bricks.getWidgetById('users_tbl')
  without from_widget context -> TypeError on dom_element
- register /rbac/admin_reset_password.ui in PATHS_ADMIN (admin role only)
- i18n entries for 4 languages
2026-09-09 18:38:36 +08:00

44 lines
798 B
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"widgettype": "Form",
"options": {
"title": "重置密码",
"description": "为选中用户设置新密码至少8位",
"fields": [
{
"name": "userid",
"uitype": "hide",
"value": "{{params_kw.get('id','')}}"
},
{
"name": "new_password",
"type": "str",
"length": 255,
"uitype": "password",
"datatype": "str",
"required": true,
"label": "新密码"
},
{
"name": "cfm_password",
"type": "str",
"length": 255,
"uitype": "password",
"datatype": "str",
"required": true,
"label": "确认密码"
}
]
},
"binds": [
{
"wid": "self",
"event": "submit",
"actiontype": "urlwidget",
"target": "self",
"options": {
"url": "{{entire_url('api/admin_reset_password.dspy')}}"
}
}
]
}