Commit 05e555ea authored by Oliver Bock's avatar Oliver Bock

DBOINCP-109: Adapted code to latest BOINC API changes

parent 2ef9402f
......@@ -49,10 +49,10 @@ function boincuser_login_authenticate($form_values) {
$passwd_hash = md5($passwd.$email_addr);
// Include BOINC user library
require_boinc('user');
require_boinc('boinc_db');
// Get the BOINC user and check credentials
$boinc_user = lookup_user_email_addr($email_addr);
$boinc_user = BoincUser::lookup_email_addr($email_addr);
if (!$boinc_user) return false;
if ($passwd_hash != $boinc_user->passwd_hash) return false;
......
......@@ -1111,10 +1111,10 @@ function boincwork_views_host_list_empty_text($context = NULL) {
// Pull the BOINC user ID from the view arguments to get show_hosts
// preference for that user
require_boinc('db');
require_boinc('boinc_db');
$view = views_get_current_view();
$account = user_load($view->args[0]);
$boincuser = lookup_user_id($account->boincuser_id);
$boincuser = BoincUser::lookup_id($account->boincuser_id);
// Determine if hosts are associated at all or just hidden
$output = '';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment