blob: 7faa64676b2fa3f2efb21a79719e5adbecbc706e (
plain)
1
2
3
4
5
6
7
8
9
|
import HmacMD5 from 'crypto-js/hmac-md5';
document.login1.submit_button.disabled = false;
document.forms.login1.addEventListener("formdata", (form_data_evt) => {
const form_data = form_data_evt.formData;
const res = HmacMD5(form_data.get("challenge"), form_data.get("password"));
form_data.set("password", res);
});
|