*** empty log message ***

svn path=/trunk/boinc/; revision=5343
This commit is contained in:
David Anderson 2005-02-07 20:00:18 +00:00
parent 345b8b49d3
commit ff449c612c
2 changed files with 37 additions and 0 deletions

View File

@ -24139,3 +24139,9 @@ David 6 Feb 2005
sched/
sched_locality.C
sched_send.C,h
David 7 Feb 2005
- add "web service" for verifying a user CPID and an authenticator
html/user/
verify_cpid.php

31
html/user/verify_cpid.php Normal file
View File

@ -0,0 +1,31 @@
<?php
// "web service" for verifying that a user CPID matches an account key
require_once("../inc/db.inc");
db_init();
$cpid = process_user_text($_GET["cpid"]);;
$authenticator = process_user_text($_GET["authenticator"]);;
if (!$cpid || !$authenticator) {
echo "<error>missing argument</error>\n";
exit();
}
$user = lookup_user_auth($authenticator);
if (!$user) {
echo "<error>bad authenticator</error>\n";
exit();
}
$x = $user->cross_project_id.$user->email_addr;
if (md5($x) == $cpid) {
echo "<success></success>\n";
} else {
echo "<error>bad CPID</error>\n";
}
?>