Forums | Mahara Community
Support
/
Direct Mahara Login with Moodle Login
23 April 2013, 1:00
Good morning
We have set up our Mahoodle account. Users can log in to Moodle and then access our Mahara site.
Is it possible to use the Moodle login to login directly to Mahara?
Thanks
Eric Walters
Marymount School
25 April 2013, 2:49
Hello,
In the file /your-path-to-mahara/lib/config-defaults.php you will eventually be interested by the following option:
// External login page
// Use this config option when you want users to be redirected to another
// login page, for example a moodle instance that has mnet to this mahara
// You can use the following placeholders:
// {wwwroot} - Expands out to the wwwroot of this moodle
// {shorturlencoded} - Expands to the relative script path of the current page (and is urlencoded)
//
// A point to note about the example below. Moodle doesn't strip the trailing slash from wwwroot
// Bug MDL-30042 fixes this, if this patch isn't applied, just hard code the login url you want instead
//
// $cfg->externallogin = 'http://moodle.example.com/auth/mnet/jump.php?hostwwwroot={wwwroot}&wantsurl={shorturlencoded}';
Regards
-dajan
von Lausanne