Comment 5 for bug 1022688

Revision history for this message
Andrei (andrei-halle-deactivatedaccount) wrote :

I don't want to bother you but i have something to ask to end this.

Finally i had this token i couldn't have before. What i did is that i took the part of the php script from the url you wrote before and taking part of it i made this url :

http://authpuppy.localhost/ws/?action=auth&authenticator=apAuthLocalUser&submit[apAuthLocalUserconnect]=Connect&apAuthLocalUser[username]=testuser&apAuthLocalUser[password]=password6&gw_id=2&gw_address=192.168.22.125&gw_port=2060

and i had this :

{"result":1,"values":{"auth":1,"redirect":"http:\/\/192.168.22.125:2060\/wifidog\/auth?token=0cda0b2f3d86c83e3acd892cc4f883ca7f9eb308"}}

So if i'm right, the php script's line :

$errno = curl_errno($curl_session);

would return a 1 (true)

and the condition :

if (!$errno)

will return a false and the php script will return his message that everything's fine, I'm just presuming.

Thanks in advance