mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mnet: login operations (change pw, forgotpw) now handle multiauth and…
… mnet remote users
- Loading branch information
martinlanghoff
committed
Jan 4, 2007
1 parent
56f5274
commit af9c522
Showing
9 changed files
with
136 additions
and
98 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
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
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,39 @@ | ||
<?php | ||
|
||
require_once dirname(dirname(__FILE__)) . '/config.php'; | ||
httpsrequired(); | ||
|
||
$username = required_param('u', PARAM_ALPHANUM); | ||
$sesskey = sesskey(); | ||
|
||
// if you are logged in then you shouldn't be here | ||
if (isloggedin() and !isguest()) { | ||
redirect( $CFG->wwwroot.'/', get_string('loginalready'), 5); | ||
} | ||
|
||
print_header('MNET ID Provider', 'MNET ID Provider', 'MNET ID Provider', 'form.email' ); | ||
|
||
if ($form = data_submitted() and confirm_sesskey()) { | ||
if ($user = get_record('user', 'username', $username, 'email', $form->email)) { | ||
if (!empty($user->mnethostid) and $host = get_record('mnet_host', 'id', $user->mnethostid)) { | ||
notice("You should be able to login at your <a href=\"{$host->wwwroot}/login/\">{$host->name}</a> provider."); | ||
} | ||
} | ||
} | ||
|
||
echo '<p> </p>'; | ||
print_simple_box_start('center','50%','','20'); | ||
|
||
?> | ||
<form method="post"> | ||
<input type="hidden" name="sesskey" value="<?php echo $sesskey; ?>"> | ||
<?php echo get_string('email') ?>: | ||
<input type="text" name="email" size="" maxlength="100"> | ||
<input type="submit" value="Find Login"> | ||
</form> | ||
<?php | ||
|
||
print_simple_box_end(); | ||
print_footer(); | ||
|
||
?> |
Oops, something went wrong.