]> git.wh0rd.org - tt-rss.git/commitdiff
only show reset password link when auth_internal is enabled (refs #681)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 23 Apr 2013 18:19:09 +0000 (22:19 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 23 Apr 2013 18:19:09 +0000 (22:19 +0400)
config.php-dist
include/login_form.php

index 1c356a9aeba07c975d10bf7b89ff7572079784d9..72b6fd1b87ad6a7530b2edc34bc94ae8896fe7f1 100644 (file)
        // 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
index 7ac7111c895f20fba1efdb8c4ffcea80833a850e..4745027f903622f79921fa82f95f24ffbb6d233c 100644 (file)
@@ -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