Skip to content

Commit

Permalink
fix forget-password (+ themeing), see #427
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGoodwin committed Jan 19, 2021
1 parent 0ca0efa commit dd86dca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/users/password-recover.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Postfix Admin
*
Expand All @@ -25,7 +26,6 @@
*/


$smarty = PFASmarty::getInstance();

/* if in .../users, we need to load a different common.php; not this file is symlinked with public/ */
if (preg_match('/\/users\//', $_SERVER['REQUEST_URI'])) {
Expand All @@ -35,8 +35,11 @@
$rel_path = './';
$context = 'admin';
}

require_once($rel_path . 'common.php');

$smarty = PFASmarty::getInstance();
$smarty->configureTheme($rel_path);


if ($context === 'admin' && !Config::read('forgotten_admin_password_reset') || $context === 'users' && !Config::read('forgotten_user_password_reset')) {
Expand Down

0 comments on commit dd86dca

Please sign in to comment.