forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hive/expired.php hive/lib.php tidy up login process Added Files: hive/login.php handle login request
- Loading branch information
mikewaters
committed
Jul 29, 2005
1 parent
cc1a7a0
commit 5b561c2
Showing
3 changed files
with
70 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php // $Id$ | ||
// login.php - action of the login form put up by expired.php. | ||
|
||
require('../../config.php'); | ||
|
||
require('lib.php'); | ||
|
||
require_login(); | ||
|
||
// get the login data | ||
$frm = data_submitted(''); | ||
|
||
// log back into Hive | ||
if (sso_user_login($frm->username, $frm->password)) { | ||
|
||
/// reopen Hive | ||
redirect($CFG->wwwroot.'/mod/resource/type/repository/hive/openhive.php'); | ||
} else { | ||
redirect($CFG->wwwroot.'/sso/hive/expired.php'); | ||
} | ||
|
||
?> | ||
|