No longer salting login user name
[squasher.git] / index.php
index 429eefb301c0c3f8816544c00ede5b4912077ab0..569a184fd28d33d0d87f7c0b365d469b528fdeba 100644 (file)
--- a/index.php
+++ b/index.php
@@ -13,13 +13,8 @@ $tools=$_GET[tools];
 
 foreach($_POST AS $key => $value) $submitted[$key]=$value;
 
-$saltplus=md5($_SERVER[REMOTE_ADDR].":".$_SERVER[REMOTE_PORT]."|".$_SERVER[HTTP_USER_AGENT]);
 $salt=md5($_SERVER[REMOTE_ADDR]."|".$_SERVER[HTTP_USER_AGENT]);
 
-//(md5(md5('jasper').$salt) == $vars[user]) ? $vun = "Username validated" : $vun = "Username incorrect";
-//(md5(md5('test'  ).$salt) == $vars[pass]) ? $vpw = "Password validated" : $vpw = "Password incorrect";
-//echo $vun . ' <br/> ' . $vpw;
-
 if ($tools=="logout"){
        session_destroy();
        $_SESSION[creds][validated]=false;
@@ -43,8 +38,6 @@ require_once("smarty/Smarty.class.php");
 $smarty = new Smarty;
 
 $smarty->assign('salt',$salt);
-$smarty->assign('vun',$vun);
-$smarty->assign('vpw',$vpw);
 $smarty->assign('debug',$debug);
 $smarty->display('login.tpl');