Use more specific user agents.

This commit is contained in:
Ricky Zhou (周家杰) 2009-08-14 21:52:55 -04:00
parent c42a697d01
commit abae1901c0
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ class Auth_FAS extends AuthPlugin {
curl_setopt($ch, CURLOPT_URL, 'https://admin.fedoraproject.org/accounts/json/person_by_username?tg_format=json');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Auth_FAS 0.9");
curl_setopt($ch, CURLOPT_USERAGENT, "Mediawiki FAS Auth 0.9.1");
curl_setopt($ch, CURLOPT_POSTFIELDS, "username=".urlencode($username)."&user_name=".urlencode($username)."&password=".urlencode($password)."&login=Login");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);