diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-12-08 15:52:25 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-12-08 15:52:25 +0000 |
commit | 87cc5cc468f4596cc2e0890ec8a2e63854169dd4 (patch) | |
tree | 34630c159aa9ddc26fa16d9a42e9b48a275c3fe0 /mdkapplet-restricted-helper | |
parent | 73af72e679f7a101f16fbd624ce40eb6877cd01c (diff) | |
download | mgaonline-87cc5cc468f4596cc2e0890ec8a2e63854169dd4.tar mgaonline-87cc5cc468f4596cc2e0890ec8a2e63854169dd4.tar.gz mgaonline-87cc5cc468f4596cc2e0890ec8a2e63854169dd4.tar.bz2 mgaonline-87cc5cc468f4596cc2e0890ec8a2e63854169dd4.tar.xz mgaonline-87cc5cc468f4596cc2e0890ec8a2e63854169dd4.zip |
(add_restricted_medium) ask if user has proper rights
Diffstat (limited to 'mdkapplet-restricted-helper')
-rwxr-xr-x | mdkapplet-restricted-helper | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mdkapplet-restricted-helper b/mdkapplet-restricted-helper index 2db5afd3..ee605915 100755 --- a/mdkapplet-restricted-helper +++ b/mdkapplet-restricted-helper @@ -112,7 +112,8 @@ my $error; sub add_restricted_medium { my ($email, $password) = @_; - my $res = get_from("https://my.mandriva.com/rest/authenticate", [ 'username', $email, 'password', $password ]); + my $res = get_from("https://my.mandriva.com/rest/authenticate", [ 'username', $email, 'password', $password, + '22return', 'userdata' ]); my $ref = XML::Simple->new->XMLin($res->{_content}); if ($ref->{code} != 0) { |