mdzidic / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
0 stars 0 forks source link

Remote Authorization Forms #296

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We try to integrate the form an Authorization  in the main site but this learns 
the failure ибо as a result gives only {"success": true} and further it is 
necessary in strict браузера again press the reference for entering but 
without entering login and password already. 

there was splendid if You have permitted to integrate the form an Authorization 
on external put or prompt as if such already there is . we regrettably have not 
found the variant as. (((

Beforehand we thank.

Original issue reported on code.google.com by InnaAnd...@googlemail.com on 23 May 2011 at 9:11

GoogleCodeExporter commented 9 years ago
Automatic translators are evil :) But looks like I understood what do you want.

Original comment by sibprogrammer on 18 Jun 2011 at 2:21

GoogleCodeExporter commented 9 years ago
You can use something similar to that I use for WHMCS module:

function owp_ClientArea($params)
{
    $code = '<form action="http://' . _owp_getHost($params) . '/login" method="post" target="_blank">
<input type="hidden" name="login" value="'.$params["username"].'" />
<input type="hidden" name="password" value="'.$params["password"].'" />
<input type="hidden" name="plain_post" value="1" />
<input type="submit" value="Login to Control Panel" />
</form>';
    return $code;
}

The key point point here is plain_post parameter. This parameter forces browser 
to redirect after login.

Original comment by sibprogrammer on 18 Jun 2011 at 2:32

GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 1 May 2012 at 8:36