Browse code

give success message when changing mail account password

Bernd Wurst authored on09/09/2020 06:17:53
Showing1 changed files
... ...
@@ -45,15 +45,13 @@ if (isset($_POST['password1']) && $_POST['password1'] != '') {
45 45
         if ($role & ROLE_VMAIL_ACCOUNT) {
46 46
             DEBUG("Ändere VMail-Passwort");
47 47
             change_vmail_password($accname, $_POST['password1']);
48
+            success_msg('Ihr Passwort wurde geändert!');
48 49
         } elseif ($role & ROLE_MAILACCOUNT) {
49 50
             DEBUG("Ändere IMAP-Passwort");
50 51
             change_mailaccount(get_mailaccount_id($accname), array('password' => $_POST['password1']));
52
+            success_msg('Ihr Passwort wurde geändert!');
51 53
         }
52
-        if (! $debugmode) {
53
-            header('Location: /');
54
-        } else {
55
-            output('');
56
-        }
54
+        redirect('/');
57 55
     }
58 56
 }
59 57