/***************************************************************************
- * Copyright (C) 2003-2006 Polytechnique.org *
+ * Copyright (C) 2003-2009 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
function doChallengeResponse() {
+ var new_pass = hash_encrypt(document.forms.login.password.value);
+ var old_pass = MD5(document.forms.login.password.value);
+
str = readCookie('ORGuid') + ":" +
- MD5(document.forms.login.password.value) + ":" +
+ hash_encrypt(document.forms.login.password.value) + ":" +
document.forms.loginsub.challenge.value;
- document.forms.loginsub.response.value = MD5(str);
+ document.forms.loginsub.response.value = hash_encrypt(str);
+ document.forms.loginsub.xorpass.value = hash_xor(new_pass, old_pass);
document.forms.loginsub.remember.value = document.forms.login.remember.checked;
document.forms.login.password.value = "";
document.forms.loginsub.submit();
}
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: