summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-02-05 14:58:35 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-02-05 19:26:00 +0100
commit5221ee0c5aaca5588e20683f397fec9d1d6e98c7 (patch)
treeceb42e65f80c08d8faf8fae48fea3f19577628e2 /settings/templates
parente6400b305987977d867f1592f3231167903b70b1 (diff)
downloadnextcloud-server-5221ee0c5aaca5588e20683f397fec9d1d6e98c7.tar.gz
nextcloud-server-5221ee0c5aaca5588e20683f397fec9d1d6e98c7.zip
offer change password only when the action is supported by the user backend
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/personal.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index 0e1677bdea8..b1cc6713923 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -15,7 +15,9 @@
<a class="button" href="https://itunes.apple.com/us/app/owncloud/id543672169?mt=8" target="_blank"><?php echo $l->t('Download iOS Client');?></a>
</fieldset>
-
+<?php
+if($_['passwordChangeSupported']) {
+?>
<form id="passwordform">
<fieldset class="personalblock">
<legend><strong><?php echo $l->t('Password');?></strong></legend>
@@ -27,6 +29,9 @@
<input id="passwordbutton" type="submit" value="<?php echo $l->t('Change password');?>" />
</fieldset>
</form>
+<?php
+}
+?>
<form id="lostpassword">
<fieldset class="personalblock">