mirror of https://github.com/BOINC/boinc.git
28 lines
502 B
PHP
28 lines
502 B
PHP
|
<?php
|
||
|
|
||
|
// RPC handler for account lookup
|
||
|
|
||
|
require_once("../inc/db.inc");
|
||
|
require_once("../inc/util.inc");
|
||
|
require_once("../inc/email.inc");
|
||
|
require_once("../inc/xml.inc");
|
||
|
|
||
|
db_init();
|
||
|
|
||
|
xml_header();
|
||
|
|
||
|
$email_addr = get_str("email_addr");
|
||
|
$passwd_hash = process_user_text(get_str("passwd_hash"));
|
||
|
|
||
|
$user = lookup_user_email_addr($email_addr);
|
||
|
if (!$user) {
|
||
|
echo "<error_num>-161</error_num>\n";
|
||
|
exit();
|
||
|
}
|
||
|
echo "<error_num>0</error_num>
|
||
|
<authenticator>$user->authenticator</authenticator>
|
||
|
";
|
||
|
|
||
|
?>
|
||
|
|