Login to moodle from another page

Login to moodle from another page

by Aleix Freixa -
Number of replies: 6
I changed my moodle version to 1.6, and now I can't login to moodle from my own login form page.

it's easy:

 <form name='login' id='login' action='http://mymoodlesite/login/index.php' method='post'>
    <input type='text' name='username' value=''>
    <input type='password' name='password' value=''>
    <input type='submit' value='log in moodle'>
</form>

In the 1.5 version, it worked very well, but with the new version, when I login from my external form, moodle kicks me out.
Is it possible that this version detects if you are trying to login from another page??

Help me please!!

Average of ratings: -
In reply to Aleix Freixa

Re: Login to moodle from another page

by David Jackson -
Hi Aleix,
FYI, I tried your form out with Moodle 1.6.1+ and it worked perfectly.
David
In reply to David Jackson

Re: Login to moodle from another page

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers
Hi!

Yes I changed the cookie test in login page after the 1.6 release to fix this problem wink

skodak
In reply to Petr Skoda

Re: Login to moodle from another page

by Aleix Freixa -
Hi again...

well Petr, could you show me which cookie code you finally writen?

Thanks
In reply to Aleix Freixa

Re: Login to moodle from another page

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers
Please do not use 1.6 release, instead upgrade to latest 1.6.1+, thanks!

skodak
In reply to Petr Skoda

Re: Login to moodle from another page

by Aleix Freixa -
I've installed the newest version, 1.6.1+, but it still doesn't work....

I've getting crazy!

Any more suggestions?
In reply to Aleix Freixa

Re: Login to moodle from another page

by Marco Gianfranchi -
I lost 3 night fighting with the same problem.

The problem in my case happened also with the 1.62.

Please check in the administration pannel the following item:

secureforms: and put it to NO value.

Immediately after all the different login formes I had around started working.

Good Luck !