Skip to content
Snippets Groups Projects
Commit 68fe6d00 authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Merge pull request #1432 from owncloud/add_requesttoken

[user_webdavauth] add requesttoken
parents 951afcf3 bce59c39
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,8 @@
OC_Util::checkAdminUser();
if($_POST) {
// CSRF check
OCP\JSON::callCheck();
if(isset($_POST['webdav_url'])) {
OC_CONFIG::setValue('user_webdavauth_url', strip_tags($_POST['webdav_url']));
......
......@@ -2,6 +2,7 @@
<fieldset class="personalblock">
<legend><strong><?php echo $l->t('WebDAV Authentication');?></strong></legend>
<p><label for="webdav_url"><?php echo $l->t('URL: http://');?><input type="text" id="webdav_url" name="webdav_url" value="<?php echo $_['webdav_url']; ?>"></label>
<input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken">
<input type="submit" value="Save" />
<br /><?php echo $l->t('ownCloud will send the user credentials to this URL. This plugin checks the response and will interpret the HTTP statuscodes 401 and 403 as invalid credentials, and all other responses as valid credentials.'); ?>
</fieldset>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment