summaryrefslogtreecommitdiff
path: root/install.sql
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-24 11:15:55 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-24 11:15:55 -0400
commit31f657e550ab8b1ea00953cc3a26f4661ee4458c (patch)
tree2a04233caaacc672b0ead54ad8e1ce43649dc18f /install.sql
parent46edec0f2d8c31b55e36e160c7d9bac8bf4d3aa4 (diff)
Long overdue: Salted password hashes
Diffstat (limited to 'install.sql')
-rw-r--r--install.sql7
1 files changed, 4 insertions, 3 deletions
diff --git a/install.sql b/install.sql
index 04896681..d32c3e3e 100644
--- a/install.sql
+++ b/install.sql
@@ -129,9 +129,10 @@ CREATE TABLE IF NOT EXISTS `modlogs` (
--
CREATE TABLE IF NOT EXISTS `mods` (
- `id` smallint(6) UNSIGNED NOT NULL AUTO_INCREMENT,
+ `id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(30) NOT NULL,
- `password` char(40) NOT NULL COMMENT 'SHA1',
+ `password` char(64) NOT NULL COMMENT 'SHA256',
+ `salt` char(32) NOT NULL,
`type` smallint(1) NOT NULL COMMENT '0: janitor, 1: mod, 2: admin',
`boards` text NOT NULL,
PRIMARY KEY (`id`),
@@ -143,7 +144,7 @@ CREATE TABLE IF NOT EXISTS `mods` (
--
INSERT INTO `mods` (`id`, `username`, `password`, `type`, `boards`) VALUES
-(1, 'admin', '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 2, '*');
+(1, 'admin', 'cedad442efeef7112fed0f50b011b2b9bf83f6898082f995f69dd7865ca19fb7', '4a44c6c55df862ae901b413feecb0d49', 2, '*');
-- --------------------------------------------------------