-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathchange_pwd.php
36 lines (29 loc) · 1016 Bytes
/
change_pwd.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* OpenID Change password form for 'Manage your OpenIDs'
*
* @author Brent Boghosian <[email protected]>
* @copyright Copyright (c) 2011 Remote-Learner
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package openid
**/
require_once(dirname(__FILE__) ."/../../config.php");
global $DB, $OUTPUT, $PAGE, $USER;
$context = context_system::instance();
$PAGE->set_context($context);
$PAGE->set_url('/auth/openid/change_pwd.php');
$title = get_string('openid_manage', 'auth_openid');
$PAGE->set_pagelayout('standard');
$PAGE->set_title($title);
$PAGE->set_heading(fullname($USER).': '.$title);
echo $OUTPUT->header();
// We don't want to allow use of this script if OpenID auth isn't enabled
if (!is_enabled_auth('openid')) {
print_error('auth_openid_not_enabled', 'auth_openid');
}
if (!$site = get_site()) {
print_error('auth_openid_no_site', 'auth_openid');
}
$config = get_config('auth/openid');
include 'user_profile.html';
echo $OUTPUT->footer();