1afa9206561be3768ef7e58ccfbd5fd203946c19
[moodle.git] / sso / hive / login.php
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');
20     }
22 ?>