diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-08 06:26:12 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-08 06:26:12 -0700 |
commit | 052491e258ec72746839298a545fecad18a947a0 (patch) | |
tree | a7b1e7d559e3bc4e28b1ee278da5fb979c2206ad | |
parent | 3a0413901fb4422fb34d786ba935dc63486bd187 (diff) |
If the Identity backend is not writable don't display the "Forgot Your Password" link
-rw-r--r-- | modules/gallery/config/identity.php | 2 | ||||
-rw-r--r-- | modules/gallery/views/login_ajax.html.php | 2 |
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> |