From b4ee69ed8d1656c6b70ba74d4e9542caac9d55c1 Mon Sep 17 00:00:00 2001
From: marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>
Date: Mon, 4 Aug 2008 10:59:16 +0000
Subject: Closes #193: Added salt field to database and new users will be
 generated with salted passwords.

Existing users remain unchanged and should still be able to log in.

Requires a schema change and the following code run against the database:

alter table elggusers_entity add column salt     varchar(8)  NOT NULL default '' after password;

git-svn-id: https://code.elgg.org/elgg/trunk@1676 36083f99-b078-4883-b0ff-0f9b5a30f544
---
 engine/schema/mysql.sql | 1 +
 1 file changed, 1 insertion(+)

(limited to 'engine/schema/mysql.sql')

diff --git a/engine/schema/mysql.sql b/engine/schema/mysql.sql
index 31d981e98..0599495c8 100644
--- a/engine/schema/mysql.sql
+++ b/engine/schema/mysql.sql
@@ -124,6 +124,7 @@ CREATE TABLE `prefix_users_entity` (
   `name` text NOT NULL,
   `username` varchar(12) NOT NULL default '',
   `password` varchar(32) NOT NULL default '',
+  `salt`     varchar(8)  NOT NULL default '',
   `email` text NOT NULL,
   `language` varchar(6)  NOT NULL default '',
   `code` varchar(32) NOT NULL default '',
-- 
cgit v1.2.3

