registration MDL-19313 implement password for private hub

This commit is contained in:
jerome mouneyrac 2010-05-06 06:41:25 +00:00
parent b2aea6c674
commit 4b1acb3ae8
5 changed files with 29 additions and 13 deletions

View file

@ -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;
}