oauth settings - clarify text
This commit is contained in:
parent
a2b20bd58f
commit
15ce90e69c
@ -154,10 +154,17 @@ function settings_post(&$a) {
|
|||||||
$secret = ((x($_POST,'secret')) ? $_POST['secret'] : '');
|
$secret = ((x($_POST,'secret')) ? $_POST['secret'] : '');
|
||||||
$redirect = ((x($_POST,'redirect')) ? $_POST['redirect'] : '');
|
$redirect = ((x($_POST,'redirect')) ? $_POST['redirect'] : '');
|
||||||
$icon = ((x($_POST,'icon')) ? $_POST['icon'] : '');
|
$icon = ((x($_POST,'icon')) ? $_POST['icon'] : '');
|
||||||
if ($name=="" || $key=="" || $secret==""){
|
$ok = true;
|
||||||
notice(t("Missing some important data!"));
|
if($name == '') {
|
||||||
|
$ok = false;
|
||||||
} else {
|
notice( t('Name is required') . EOL);
|
||||||
|
}
|
||||||
|
if($key == '' || $secret == '') {
|
||||||
|
$ok = false;
|
||||||
|
notice( t('Key and Secret are required') . EOL);
|
||||||
|
}
|
||||||
|
|
||||||
|
if($ok) {
|
||||||
if ($_POST['submit']==t("Update")){
|
if ($_POST['submit']==t("Update")){
|
||||||
$r = q("UPDATE clients SET
|
$r = q("UPDATE clients SET
|
||||||
client_id='%s',
|
client_id='%s',
|
||||||
@ -628,8 +635,8 @@ function settings_content(&$a) {
|
|||||||
'$submit' => t('Submit'),
|
'$submit' => t('Submit'),
|
||||||
'$cancel' => t('Cancel'),
|
'$cancel' => t('Cancel'),
|
||||||
'$name' => array('name', t('Name'), '', t('Name of application')),
|
'$name' => array('name', t('Name'), '', t('Name of application')),
|
||||||
'$key' => array('key', t('Consumer Key'), random_string(16), t('Automatically generated - change if desired')),
|
'$key' => array('key', t('Consumer Key'), random_string(16), t('Automatically generated - change if desired. Max length 20')),
|
||||||
'$secret' => array('secret', t('Consumer Secret'), random_string(16), t('Automatically generated - change if desired')),
|
'$secret' => array('secret', t('Consumer Secret'), random_string(16), t('Automatically generated - change if desired. Max length 20')),
|
||||||
'$redirect' => array('redirect', t('Redirect'), '', t('Redirect URI - leave blank unless your application specifically requires this')),
|
'$redirect' => array('redirect', t('Redirect'), '', t('Redirect URI - leave blank unless your application specifically requires this')),
|
||||||
'$icon' => array('icon', t('Icon url'), '', t('Optional')),
|
'$icon' => array('icon', t('Icon url'), '', t('Optional')),
|
||||||
));
|
));
|
||||||
|
@ -1 +1 @@
|
|||||||
2013-09-22.444
|
2013-09-23.445
|
||||||
|
Reference in New Issue
Block a user