We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 5e8a578b authored by Jonas Haraldsson's avatar Jonas Haraldsson

more info on page

parent 8da37570
......@@ -55,9 +55,10 @@ function displayError($error_msg) {
*
*/
$smarty->assign('site_name', $site_name);
// We always need the api_key parameter
if (!isset($_REQUEST['api_key'])) {
// We always need the api_key parameter and parameter cb or token
if (!isset($_REQUEST['api_key']) || !(isset($_REQUEST['cb']) || isset($_REQUEST['token']))) {
displayError('Must submit a combination of parameters api_key and cb or api_key and token to proceed.');
// Web app auth stage 1
......
<html>
<body>
<h2>{$site_name}</h2>
{if $error_msg}
<p>{$error_msg}</p>
{elseif $stage == 'deskapp2.2'}
<p>Thanks you very much {$username}. Your authorization has been recorded.</p>
<p>Thank you very much {$username}. Your authorization has been recorded.</p>
<p>You may now close this page.</p>
{else}
<p>Uknown client with<br />
{if $stage == 'webapp1'}
<p>webapp with callback {$cb} and api key {$api_key}</p>
{elseif $stage == 'deskapp1'}
<p>deskapp with api key {$api_key}</p>
URL: <b>{$cb}</b><br />
{/if}
API key: <b>{$api_key}</b><br />
wants your permission to talk with this service.</p>
<form method="post" action="">
<p>Your Username: <input type="text" name="username" /></p>
<p>Your Password: <input type="password" name="password" /></p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment