Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.4
-
Fix Version/s: 1.9.5
-
Component/s: Authentication
-
Labels:None
-
Database:Any
-
Difficulty:Easy
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
Currently, when Moodle's login page is accessed as an unauthenticated user, the "username" input field gets automatically prefilled if a proper MOODLEID_ cookie exists.
I wrote a little patch that improves the auto-username-prefilling ability: If the username is passed to the login script as a GET variable, it gets auto-filled in, too. This makes it convenient to link from other systems sharing the same usernames to Moodle's login page if the user is already logged in in the other system, but not yet into Moodle. Then links of the form
/moodle/login/index.php?username=john
can be used and the user usually just have to click the Login button to login to Moodle.
The attached patch against MOODLE_19_STABLE would implement this. It would be great to get it committed into 1.9, since it does not change the current behaviour in any way, just offers an improvement for those developers who are aware of it. I am using it as a simple solution for a "quasi-SSO" from Drupal (6.9) to Moodle (1.9.4+).