Add pass_reminder_custom_link conf setting - refs BT#9859

Use this link as the "Forgot password?" link instead of the default.
This setting should be transformed into a hook for plugins at a later time
pull/3085/head^2
Angel Fernando Quiroz Campos 6 years ago
parent 42517177ac
commit 0b4a8c784a
  1. 3
      main/install/configuration.dist.php
  2. 9
      main/template/default/layout/login_form.tpl

@ -1370,6 +1370,9 @@ ALTER TABLE notification_event ADD COLUMN event_id INT NULL;
// Catalog search settings visibility
//$_configuration['catalog_settings'] = ['sessions' => ['by_title' => true, 'by_date' => true, 'by_tag' => true, 'show_session_info' => true, 'show_session_date' => true]];
// Use this link as the "Forgot password?" link instead of the default. This setting should be transformed into a hook for plugins at a later time
//$_configuration['pass_reminder_custom_link'] = '';
// KEEP THIS AT THE END
// -------- Custom DB changes
// Add user activation by confirmation email

@ -19,7 +19,14 @@
{% endif %}
{% if "allow_lostpassword" | api_get_setting == 'true' %}
<li><a href="{{ _p.web_main }}auth/lostPassword.php"> {{ 'LostPassword' | get_lang }} </a></li>
{% set pass_reminder_link = 'pass_reminder_custom_link'|api_get_configuration_value %}
{% set lost_password_link = _p.web_main ~ 'auth/lostPassword.php' %}
{% if not pass_reminder_link is empty %}
{% set lost_password_link = pass_reminder_link %}
{% endif %}
<li><a href="{{ lost_password_link }}"> {{ 'LostPassword' | get_lang }} </a></li>
{% endif %}
</ul>
{% endif %}

Loading…
Cancel
Save