Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-02-03 23:03:32 +0400
committerLukas Reschke <lukas@statuscode.ch>2013-02-12 15:26:51 +0400
commitb966095e8220ccf9bcbe98b47e4bec9b10ed78f6 (patch)
tree56fc8f8d3ac3d0f4e665e17c28f51ebc60622949 /apps
parentde9befdda0195f598aea8afba9bdde2cc2310c50 (diff)
[user_ldap] Add requesttoken
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/settings.php2
-rw-r--r--apps/user_ldap/templates/settings.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_ldap/settings.php b/apps/user_ldap/settings.php
index f77fb0ac9ff..8ff1be186da 100644
--- a/apps/user_ldap/settings.php
+++ b/apps/user_ldap/settings.php
@@ -28,6 +28,8 @@ $params = array('ldap_host', 'ldap_port', 'ldap_dn', 'ldap_agent_password', 'lda
OCP\Util::addscript('user_ldap', 'settings');
if ($_POST) {
+ OCP\JSON::callCheck();
+
foreach($params as $param){
if(isset($_POST[$param])){
if('ldap_agent_password' == $param) {
diff --git a/apps/user_ldap/templates/settings.php b/apps/user_ldap/templates/settings.php
index 31f453b5a5a..6aa89b8981e 100644
--- a/apps/user_ldap/templates/settings.php
+++ b/apps/user_ldap/templates/settings.php
@@ -28,6 +28,7 @@
<p><label for="ldap_email_attr">Email Attribute</label><input type="text" id="ldap_email_attr" name="ldap_email_attr" value="<?php echo $_['ldap_email_attr']; ?>" /></p>
</fieldset>
<input type="submit" value="Save" /> <a href="http://owncloud.org/support/ldap-backend/" target="_blank"><img src="<?php echo OCP\Util::imagePath('','actions/info.png'); ?>" style="height:1.75ex" /> <?php echo $l->t('Help');?></a>
+ <input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken">
</div>
</form>