mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-30 21:15:34 +08:00
94 lines
3.2 KiB
HTML
94 lines
3.2 KiB
HTML
<!--
|
||
Copyright 2012-2026 ShopeX (https://www.shopex.cn)
|
||
|
||
Licensed under the Apache License, Version 2.0 (the "License");
|
||
you may not use this file except in compliance with the License.
|
||
You may obtain a copy of the License at
|
||
|
||
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
Unless required by applicable law or agreed to in writing, software
|
||
distributed under the License is distributed on an "AS IS" BASIS,
|
||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
See the License for the specific language governing permissions and
|
||
limitations under the License.
|
||
-->
|
||
|
||
<form action="index.php?ctl=users&act=chkpassword&finder_id=a9b819" id="user-chkpass-form" method="POST">
|
||
<div class="tableform">
|
||
<div class="division">
|
||
<input type="hidden" name="user_id" value="<{$user_id}>" />
|
||
<table cellspacing="0" cellpadding="0" width="100%">
|
||
<tbody>
|
||
<tr><th><em class="red">*</em><label for="dom_el_ea78c40"><{t}>超级管理员密码:<{/t}></label></th><td><input type="password" id="dom_el_ea78c40" vtype="required" name="old_login_password" title="<{t}>用户名:<{/t}>" class="x-input " autocomplete="off"/></td></tr>
|
||
<tr><th><em class="red">*</em><label for="dom_el_ea78c41"><{t}>新密码:<{/t}></label></th><td><input type="password" id="dom_el_ea78c41" vtype="required" name="new_login_password" title="<{t}>密码:<{/t}>" class="x-input " autocomplete="off"/></td></tr>
|
||
<tr><th><em class="red">*</em><label for="dom_el_ea78c42"><{t}>再次输入新密码:<{/t}></label></th><td><input type="password" id="dom_el_ea78c42" vtype="required" name="pam_account[login_password]" title="<{t}>确认密码:<{/t}>" class="x-input " autocomplete="off"/></td></tr>
|
||
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<div class="division notice">
|
||
<h6>密码复杂度要求:</h6>
|
||
<div>1、密码长度至少12位;</div>
|
||
<div>2、必须包含数字、大小写字母;</div>
|
||
<div>3、避免连续的数字或字母;</div>
|
||
</div>
|
||
</div>
|
||
</from>
|
||
<{area inject=".mainFoot"}>
|
||
<div class="table-action">
|
||
<table width="100%" cellspacing="0" cellpadding="0">
|
||
<tbody>
|
||
<tr>
|
||
|
||
|
||
<td><{button label=$___desktop="确定"|t:'desktop' class="btn btn-primary" id="user-chkpass-form-submit" type="submit"}></td>
|
||
|
||
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<{/area}>
|
||
<script>
|
||
(function(){
|
||
var _form = $('user-chkpass-form');
|
||
var btn =$('user-chkpass-form-submit');
|
||
var dialog=btn.getParent('.dialog').retrieve('instance');
|
||
//var finder = finderGroup['<{$env.get.finder_id}>'];
|
||
|
||
_form.store('target',{
|
||
onComplete:function(){
|
||
|
||
},
|
||
onSuccess:function(response){
|
||
|
||
var hash_res_obj = JSON.decode(response);
|
||
|
||
if (hash_res_obj.success != undefined && hash_res_obj.success != "")
|
||
{
|
||
try{
|
||
var _dialogIns = btn.getParent('.dialog').retrieve('instance');
|
||
}catch(e){}
|
||
|
||
if(_dialogIns)
|
||
{
|
||
_dialogIns.close();
|
||
//window.finderGroup['<{$env.get._finder.finder_id}>'].refresh();
|
||
}
|
||
}
|
||
}
|
||
});
|
||
|
||
btn.addEvent('click',function(){
|
||
|
||
_form.fireEvent('submit',{stop:$empty});
|
||
|
||
|
||
|
||
});
|
||
|
||
})();
|
||
|
||
|
||
</script> |