fix forget-password (+ themeing), see #427

This commit is contained in:
David Goodwin committed 2021-01-19 09:19:59 +00:00
1 parent 0ca0efa7b8
commit dd86dcad30
1 file changed
+4 -1
+4 -1
View File
@@ -1,4 +1,5 @@
<?php
/**
* Postfix Admin
*
@@ -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'])) {
@@ -35,8 +35,11 @@ if (preg_match('/\/users\//', $_SERVER['REQUEST_URI'])) {
$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')) {