summaryrefslogtreecommitdiffstats
path: root/create_database.sql
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2007-06-23 15:53:30 +0200
committerArun Persaud <arun@nubati.net>2007-06-23 19:30:38 +0200
commit7405ce4fabf64e905e7b7371764d74dbc4b1b198 (patch)
treee6f7ef2ca6cde43f59fab410716c4c96db8865c5 /create_database.sql
parente7748e94add02ab4530a3d75276bb942430d35f4 (diff)
downloade-DoKo-7405ce4fabf64e905e7b7371764d74dbc4b1b198.tar.gz
e-DoKo-7405ce4fabf64e905e7b7371764d74dbc4b1b198.tar.bz2
e-DoKo-7405ce4fabf64e905e7b7371764d74dbc4b1b198.zip
NEW FEATURE: password recovery is now working
Added a simple form of password recovery. The user gets send an email with the new password, which is valid for 24h. The user can request a maximum of 5 passwords within 24h to prevent filling up the database with garbage.
Diffstat (limited to 'create_database.sql')
-rw-r--r--create_database.sql34
1 files changed, 31 insertions, 3 deletions
diff --git a/create_database.sql b/create_database.sql
index 9acb4f0..4be13de 100644
--- a/create_database.sql
+++ b/create_database.sql
@@ -310,10 +310,38 @@ CREATE TABLE `User_Prefs` (
--
-/*!40000 ALTER TABLE `User_Prefs` DISABLE KEYS */;
-LOCK TABLES `User_Prefs` WRITE;
+
+
+/*!40000 ALTER TABLE `Recovery` DISABLE KEYS */;
+LOCK TABLES `Recovery` WRITE;
+UNLOCK TABLES;
+/*!40000 ALTER TABLE `Recovery` ENABLE KEYS */;
+
+
+DROP TABLE IF EXISTS `Recovery`;
+CREATE TABLE `Recovery` (
+ `id` int(11) NOT NULL auto_increment,
+ `user_id` int(11) NOT NULL default '0',
+ `password` varchar(32) default NULL,
+ `create_date` timestamp NOT NULL default '0000-00-00 00:00:00',
+ UNIQUE KEY `id` (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+--
+-- Dumping data for table `Recovery`
+--
+
+
+
+
+/*!40000 ALTER TABLE `Recovery` DISABLE KEYS */;
+LOCK TABLES `Recovery` WRITE;
UNLOCK TABLES;
-/*!40000 ALTER TABLE `User_Prefs` ENABLE KEYS */;
+/*!40000 ALTER TABLE `Recovery` ENABLE KEYS */;
+
+
+
+
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;