mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
registration MDL-19313 implement password for private hub
This commit is contained in:
parent
b2aea6c674
commit
4b1acb3ae8
5 changed files with 29 additions and 13 deletions
|
@ -169,6 +169,17 @@ class hub {
|
|||
if (!empty($token)) {
|
||||
$params['token'] = $token;
|
||||
}
|
||||
$params['confirmed'] = 1;
|
||||
$token = $DB->get_record('registration_hubs',$params);
|
||||
return $token;
|
||||
}
|
||||
|
||||
public function get_unconfirmedhub($huburl) {
|
||||
global $DB;
|
||||
|
||||
$params = array();
|
||||
$params['huburl'] = $huburl;
|
||||
$params['confirmed'] = 0;
|
||||
$token = $DB->get_record('registration_hubs',$params);
|
||||
return $token;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue