mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 11:45:56 +00:00
only show reset password link when auth_internal is enabled (refs #681)
This commit is contained in:
@@ -192,6 +192,8 @@
|
|||||||
// authentication plugin here (auth_*).
|
// authentication plugin here (auth_*).
|
||||||
// Users may enable other user plugins from Preferences/Plugins but may not
|
// Users may enable other user plugins from Preferences/Plugins but may not
|
||||||
// disable plugins specified in this list.
|
// 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');
|
define('LOG_DESTINATION', 'sql');
|
||||||
// Log destination to use. Possible values: sql (uses internal logging
|
// Log destination to use. Possible values: sql (uses internal logging
|
||||||
|
|||||||
@@ -188,6 +188,8 @@ function bwLimitChange(elem) {
|
|||||||
value="<?php echo $_SESSION["fake_login"] ?>" />
|
value="<?php echo $_SESSION["fake_login"] ?>" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?php if (strpos(PLUGINS, "auth_internal") !== FALSE) { ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label><?php echo __("Password:") ?></label>
|
<label><?php echo __("Password:") ?></label>
|
||||||
<input type="password" name="password" required="1"
|
<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>
|
<a class='forgotpass' href="public.php?op=forgotpass"><?php echo __("I forgot my password") ?></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label><?php echo __("Language:") ?></label>
|
<label><?php echo __("Language:") ?></label>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Reference in New Issue
Block a user