Login From a Different Website to Moodle September 9, 2011Posted by Tournas Dimitrios in Moodle.
The purpose of the Login block is for users to authenticate themselves by entering their username and password. It is possible to log into Moodle from a different website , maybe your organization’s homepage , effectively avoiding the Login block . To implement this , you will have to add some HTML code on that page as shown :
<form class="loginform" name="login" method="post" action="http://www.mysite.com/login/index.php"> <p>Username : <input size="10" name="username" /> </p> <p>Password : <input size="10" name="password" type="password" /> </p> <p> <input name="Submit" value="Login" type="submit" /> </p> </form>
The form will pass the username and password to your Moodle system. You will have to replace http://www.mysite.com with your URL. This address has to be entered in the Alternate Login URL field at Users | Authentication | Manage authentication in the Site Administration block.