Automatic installer.php lang files by installer_builder (20080812)
[moodle.git] / sso / hive / login.php
blobf8fe38cfc1cfca5f96a2be303e5b28e534938894
1 <?php // $Id$
2 // login.php - action of the login form put up by expired.php.
4 require('../../config.php');
6 require('lib.php');
8 require_login();
10 // get the login data
11 $frm = data_submitted('');
13 // log back into Hive
14 if (sso_user_login($frm->username, $frm->password)) {
16 /// reopen Hive
17 redirect($CFG->wwwroot.'/mod/resource/type/repository/hive/openlitebrowse.php');
18 } else {
19 redirect($CFG->wwwroot.'/sso/hive/expired.php');