summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-08 06:26:12 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-08 06:26:12 -0700
commit052491e258ec72746839298a545fecad18a947a0 (patch)
treea7b1e7d559e3bc4e28b1ee278da5fb979c2206ad
parent3a0413901fb4422fb34d786ba935dc63486bd187 (diff)
If the Identity backend is not writable don't display the "Forgot Your Password" link
-rw-r--r--modules/gallery/config/identity.php2
-rw-r--r--modules/gallery/views/login_ajax.html.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery/config/identity.php b/modules/gallery/config/identity.php
index 0479d08b..72d1b589 100644
--- a/modules/gallery/config/identity.php
+++ b/modules/gallery/config/identity.php
@@ -32,6 +32,6 @@
*/
$config["default"] = array (
"driver" => "gallery",
- "allow_updates" => true,
+ "allow_updates" => false,
"params" => array(),
);
diff --git a/modules/gallery/views/login_ajax.html.php b/modules/gallery/views/login_ajax.html.php
index d3364b46..332a5365 100644
--- a/modules/gallery/views/login_ajax.html.php
+++ b/modules/gallery/views/login_ajax.html.php
@@ -36,8 +36,10 @@
<li id="g-login-form">
<?= $form ?>
</li>
+ <? if (!empty($writable)): ?>
<li>
<a href="#" id="g-password-reset" class="g-right g-txt-small"><?= t("Forgot Your Password?") ?></a>
</li>
+ <? endif ?>
</ul>
</div>