diff options
author | Andrew Dolgov <[email protected]> | 2013-04-23 22:19:09 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-23 22:19:09 +0400 |
commit | 3921f5081bcb37df4bdf951ebb5fe2a14a88791f (patch) | |
tree | 11bcbf7c45f945080ae3c15891e99fbc163318e6 | |
parent | 3a05cddd48b890352a10564f78c889e009fd0550 (diff) |
only show reset password link when auth_internal is enabled (refs #681)
-rw-r--r-- | config.php-dist | 2 | ||||
-rw-r--r-- | include/login_form.php | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/config.php-dist b/config.php-dist index 1c356a9ae..72b6fd1b8 100644 --- a/config.php-dist +++ b/config.php-dist @@ -192,6 +192,8 @@ // authentication plugin here (auth_*). // Users may enable other user plugins from Preferences/Plugins but may not // disable plugins specified in this list. + // Disabling auth_internal in this list would automatically disable + // reset password link on the login form. define('LOG_DESTINATION', 'sql'); // Log destination to use. Possible values: sql (uses internal logging diff --git a/include/login_form.php b/include/login_form.php index 7ac7111c8..4745027f9 100644 --- a/include/login_form.php +++ b/include/login_form.php @@ -188,6 +188,8 @@ function bwLimitChange(elem) { value="<?php echo $_SESSION["fake_login"] ?>" /> </div> + <?php if (strpos(PLUGINS, "auth_internal") !== FALSE) { ?> + <div class="row"> <label><?php echo __("Password:") ?></label> <input type="password" name="password" required="1" @@ -197,6 +199,8 @@ function bwLimitChange(elem) { <a class='forgotpass' href="public.php?op=forgotpass"><?php echo __("I forgot my password") ?></a> </div> + <?php } ?> + <div class="row"> <label><?php echo __("Language:") ?></label> <?php |