Browse code

Virtuelle Accounts richtig nutzen, bugfix

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1147 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on 17/09/2008 21:15:01
Showing 1 changed files
... ...
@@ -14,15 +14,7 @@ $title = "Passwort ändern";
14 14
 
15 15
 if ($_POST['password1'] != '')
16 16
 {
17
-  $accname = '';
18
-  if ($role & ROLE_VMAIL_ACCOUNT)
19
-  {
20
-    $accname = $_SESSION['accountname'];
21
-  }
22
-  elseif ($role & ROLE_MAILACCOUNT)
23
-  {
24
-    $accname = $_SESSION['mailaccount'];
25
-  }
17
+  $accname = $_SESSION['mailaccount'];
26 18
   check_form_token('email_chpass');
27 19
   $result = find_role($accname, $_POST['old_password']);
28 20