Improved csrf protection for remote login

This commit is contained in:
Ozzie Isaacs
2021-10-03 09:58:10 +02:00
parent 52be2ad4a2
commit 1c15e10ac0
3 changed files with 40 additions and 4 deletions

View File

@@ -15,7 +15,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
function getPath() {
var jsFileLocation = $("script[src*=jquery]").attr("src"); // the js file path
return jsFileLocation.substr(0, jsFileLocation.search("/static/js/libs/jquery.min.js")); // the js folder path