]> 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)
committerzafi <zafirakis.daniel@gmail.com>
Sat, 25 May 2013 07:03:07 +0000 (09:03 +0200)
so it should only be visible for users with a supporting backend.

settings/templates/personal.php

index da812e8ed9a5e02ddb2040de9924f913c885abf9..f0002c505c801a13fe51d2497e35a5fbab52f479 100644 (file)
@@ -63,6 +63,9 @@ if($_['displayNameChangeSupported']) {
 }
 ?>
 
+<?php
+if($_['passwordChangeSupported']) {
+?>
 <form id="lostpassword">
        <fieldset class="personalblock">
                <legend><strong><?php p($l->t('Email'));?></strong></legend>
@@ -71,6 +74,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">