From f314eb8f722b78a4d27d7591521f014d74cac180 Mon Sep 17 00:00:00 2001 From: zafi <zafirakis.daniel@gmail.com> Date: Sat, 25 May 2013 09:03:07 +0200 Subject: [PATCH] The "lost password" field depends on OC_USER_BACKEND_SET_PASSWORD so it should only be visible for users with a supporting backend. --- settings/templates/personal.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/settings/templates/personal.php b/settings/templates/personal.php index da812e8ed9..f0002c505c 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -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"> -- GitLab