Add cleaned flag
[misc/kostenrechnung] / lib / login.php
index 35e6160..4ba192f 100644 (file)
@@ -1,10 +1,5 @@
 <?php
 
-function passwd($login,$pass)
-{
-  return md5(md5($pass).$login);
-}
-
 function check_passwd()
 {
   if (empty($_POST['login']) || empty($_POST['passwd']))
@@ -28,6 +23,7 @@ function check_passwd()
                             'login' => $row['login'],
                             'name' => $row['name'],
                             'email' => $row['email'],
+                            'group' => $row['gid'],
                             'basedir' => substr($_SERVER['SCRIPT_FILENAME'],0,-9));
     return true;
   }