Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1317)
+++ branches/2.8.x/CHANGELOG	(revision 1318)
@@ -12,6 +12,8 @@
 
 ------------------------------------- 2.8.1 -------------------------------------
 14-Apr-2010 Dietmar Woellbrink (Luisehahne)
+#	Ticket #976 Using md5 also for the username inside class.login.php
+14-Apr-2010 Dietmar Woellbrink (Luisehahne)
 #	Ticket #977 Templates sorted in alphabetical order
 14-Apr-2010 Dietmar Woellbrink (Luisehahne)
 #	Ticket #978 Add additional PHP 5.2 check to installation
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1317)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1318)
@@ -52,6 +52,6 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.x');
-if(!defined('REVISION')) define('REVISION', '1317');
+if(!defined('REVISION')) define('REVISION', '1318');
 
 ?>
\ No newline at end of file
Index: branches/2.8.x/wb/framework/class.login.php
===================================================================
--- branches/2.8.x/wb/framework/class.login.php	(revision 1317)
+++ branches/2.8.x/wb/framework/class.login.php	(revision 1318)
@@ -144,7 +144,7 @@
 	function authenticate() {
 		// Get user information
 		$database = new database();
-		$query = "SELECT * FROM ".$this->USERS_TABLE." WHERE username = '".$this->username."' AND password = '".$this->password."' AND active = '1'";
+		$query = 'SELECT * FROM `'.$this->USERS_TABLE.'` WHERE MD5(`username`) = "'.md5($this->username).'" AND `password` = "'.$this->password.'" AND `active` = 1';
 		$results = $database->query($query);
 		$results_array = $results->fetchRow();
 		$num_rows = $results->numRows();
