Changes between Version 5 and Version 6 of login-service


Ignore:
Timestamp:
Aug 11, 2014, 9:56:40 AM (5 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • login-service

    v5 v6  
    5050function authenticate_user($user, $password, $app_id) {
    5151        $url = 'https://members.mayfirst.org:8080/check';
    52         $vars = 'user=' . $user . '&password=' . $password .
    53          '&app_id=' . $app_id;
     52        $vars = 'user=' . urlencode($user) . '&password=' . urlencode($password) .
     53         '&app_id=' . urlencode($app_id);
    5454
    5555        $ch = curl_init( $url );