mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
print a better error message when password change is blocked
This commit is contained in:
parent
a349c75f53
commit
ef36710ea7
@ -40,9 +40,12 @@ $CONF = Config::getInstance()->getAll();
|
||||
|
||||
$smarty->configureTheme($rel_path);
|
||||
|
||||
if ($context === 'admin' && !Config::read('forgotten_admin_password_reset') ||
|
||||
$context === 'users' && (!Config::read('forgotten_user_password_reset') || Config::read('mailbox_postpassword_script'))) {
|
||||
die('Password reset is disabled by configuration option: forgotten_admin_password_reset or mailbox_postpassword_script');
|
||||
if ($context === 'admin' && !Config::read('forgotten_admin_password_reset')) {
|
||||
die('Password change is disabled by configuration option: forgotten_admin_password_reset or mailbox_postpassword_script');
|
||||
}
|
||||
|
||||
if ($context === 'users' && (!Config::read('forgotten_user_password_reset') || Config::read('mailbox_postpassword_script'))) {
|
||||
die('Password change is disabled by configuration option: forgotten_user_password_reset or mailbox_postpassword_script');
|
||||
}
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
|
Loading…
Reference in New Issue
Block a user