]> source.dussan.org Git - nextcloud-server.git/commitdiff
The "lost password" field depends on OC_USER_BACKEND_SET_PASSWORD
authorzafi <zafirakis.daniel@gmail.com>
Sat, 25 May 2013 07:03:07 +0000 (09:03 +0200)
committerMorris Jobke <morris.jobke@gmail.com>
Tue, 28 May 2013 11:17:07 +0000 (13:17 +0200)
so it should only be visible for users with a supporting backend.

settings/templates/personal.php

index f3fd3f1010daf84b857afa3a44772b3c2621a83e..3c7179d6e6a4587fa6d0b4154fe39f05d62a0597 100644 (file)
@@ -65,6 +65,9 @@ if($_['displayNameChangeSupported']) {
 }
 ?>
 
+<?php
+if($_['passwordChangeSupported']) {
+?>
 <form id="lostpassword">
        <fieldset class="personalblock">
                <legend><strong><?php p($l->t('Email'));?></strong></legend>
@@ -73,6 +76,9 @@ if($_['displayNameChangeSupported']) {
                <em><?php p($l->t('Fill in an email address to enable password recovery'));?></em>
        </fieldset>
 </form>
+<?php
+}
+?>
 
 <form>
        <fieldset class="personalblock">