Skip to content

Commit

Permalink
Don't let user change realm.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Barth committed Jan 12, 2010
1 parent 31df270 commit a6470bd
Showing 1 changed file with 14 additions and 6 deletions.
Expand Up @@ -15,12 +15,20 @@ function openid_provider_sso_rp_edit_form() {
'#default_value' => empty($rp) ? '' : $rp['name'],
'#required' => TRUE,
);
$form['realm'] = array(
'#type' => 'textfield',
'#title' => t('Realm (URL)'),
'#default_value' => empty($rp) ? '' : $rp['realm'],
'#required' => TRUE,
);
if (isset($rp)) {
$form['realm'] = array(
'#type' => 'hidden',
'#default_value' => empty($rp) ? '' : $rp['realm'],
);
}
else {
$form['realm'] = array(
'#type' => 'textfield',
'#title' => t('Realm (URL)'),
'#default_value' => empty($rp) ? '' : $rp['realm'],
'#required' => TRUE,
);
}
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
Expand Down

0 comments on commit a6470bd

Please sign in to comment.