Skip to content

Commit

Permalink
fix missing "forgot password" link
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 29, 2024
1 parent 6cf5309 commit ce78e96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/material/themes/material/silauth/loginuserpass.twig
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@
{% endif %}

<div class="mdl-card__actions" layout-children="row">
{% if forgotPasswordUrl is defined and forgotPasswordUrl is not empty %}
{% if passwordForgotUrl is not empty %}
<a
href="{{ forgotPasswordUrl|e }}"
href="{{ passwordForgotUrl|e }}"
target="_blank"
rel="noopener"
class="mdl-button mdl-button--colored mdl-typography--caption"
Expand Down
1 change: 1 addition & 0 deletions modules/silauth/public/loginuserpass.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
$t->data['announcement'] = AnnouncementUtils::getAnnouncement();
$t->data['idpName'] = $globalConfig->getString('idp_display_name');
$t->data['siteKey'] = $recaptchaSiteKey;
$t->data['passwordForgotUrl'] = $globalConfig->getOptionalString('passwordForgotUrl', '');

/* For simplicity's sake, don't bother telling this Request to trust any IP
* addresses. This is okay because we only track the failures of untrusted
Expand Down

0 comments on commit ce78e96

Please sign in to comment.