fixed 明文密码泄露问题

pull/163/head
no-passwd 2024-01-05 19:43:54 +08:00 committed by GitHub
parent bba9714a41
commit 23fbd034f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -167,6 +167,7 @@ if (isset($_POST['password']) and isset($_POST['user'])) {
var password = document.getElementById('password');
var md5pwd = document.getElementById('md5_password');
md5pwd.value = SHA256(password.value);
password.value = "Null";
//可以校验判断表单内容true就是通过提交false阻止提交
return true;
}