mirror of https://github.com/jumpserver/jumpserver
perf: 登录重置密码传输进行加密
parent
4a520e9e10
commit
2977323800
|
@ -33,6 +33,9 @@
|
|||
|
||||
{% block custom_foot_js %}
|
||||
<script type="text/javascript" src="{% static 'js/pwstrength-bootstrap.js' %}"></script>
|
||||
<script type="text/javascript" src="{% static 'js/plugins/jsencrypt/jsencrypt.min.js' %}"></script>
|
||||
<script type="text/javascript" src="{% static 'js/plugins/cryptojs/crypto-js.min.js' %}"></script>
|
||||
<script type="text/javascript" src="{% static 'js/plugins/buffer/buffer.min.js' %}"></script>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
// 密码强度校验
|
||||
|
@ -76,7 +79,8 @@ $(document).ready(function () {
|
|||
checkPasswordRules(password, minLength);
|
||||
})
|
||||
|
||||
$("form").submit(function(){
|
||||
$("form").submit(function(event){
|
||||
event.preventDefault()
|
||||
// Let's find the input to check
|
||||
var ids = ['id_new_password', 'id_confirm_password']
|
||||
for (id of ids) {
|
||||
|
@ -87,6 +91,7 @@ $(document).ready(function () {
|
|||
passwordRef.val(value)
|
||||
}
|
||||
}
|
||||
this.submit();
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue