Changes between Version 3 and Version 4 of login-service


Ignore:
Timestamp:
May 7, 2014, 12:14:17 PM (6 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • login-service

    v3 v4  
    2626   '&password=' . urlencode($password) . '&app_id=' . $app_id;
    2727  $out = file_get_contents($url);
    28   if($out === "0") return TRUE;
     28  if($out == "yes") return TRUE;
    2929  return FALSE;
    3030}
     
    3838app_id="$3"
    3939out=$(curl -s "https://members.mayfirst.org:8080/check?user=$user&password=$pass&app_id=$3")
    40 [ "$out" = "0" ] && exit 0
     40[ "$out" = "yes" ] && exit 0
    4141exit 1
    4242}}}