login page not working directly from the index page

login page not working directly from the index page

ໂດຍ Shriya Dhar -
ຈຳນວນການຕອບກັບ: 1

I want to put the login form on my index page directly. I have put the code as it is but it is giving the following error

The form did not come from this page! (referer = http://teckie:8080/moodle/)

What is the problem?

ການຈັດອັນດັບສະເລ່ຍ: -
ໃນການຕອບກັບຫາ Shriya Dhar

Re: login page not working directly from the index page

ໂດຍ Martin Dougiamas -
ຮູບພາບຂອງ Core developers ຮູບພາບຂອງ Documentation writers ຮູບພາບຂອງ Moodle HQ ຮູບພາບຂອງ Particularly helpful Moodlers ຮູບພາບຂອງ Plugin developers ຮູບພາບຂອງ Testers
That's a security feature in Moodle.

It's to stop a bad hacker (cracker) from writing a simple script that repeatedly calls your login page attempting to guess a password and gain entry.

Setting "buggy_referer" to true in config.php will stop this behaviour.
ການຈັດອັນດັບສະເລ່ຍ: -