From 4e1190952aa1bdd3476d9b2061c11e4a25977b41 Mon Sep 17 00:00:00 2001 From: xisi Date: Mon, 20 Jan 2014 02:57:15 -0500 Subject: [PATCH] updated expiration on email confirm tokens to 1 hour rather than 10 min --- sql/000_base_structure.sql | 6 +++--- sql/014_accounts_update.sql | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sql/000_base_structure.sql b/sql/000_base_structure.sql index 66f5ffd7..e221a84a 100644 --- a/sql/000_base_structure.sql +++ b/sql/000_base_structure.sql @@ -205,9 +205,9 @@ INSERT INTO `token_types` (`id`, `name`, `expiration`) VALUES (2, 'confirm_email', 0), (3, 'invitation', 0), (4, 'account_unlock', 0), -(5, 'account_edit', 360), -(6, 'change_pw', 360), -(7, 'withdraw_funds', 360); +(5, 'account_edit', 3600), +(6, 'change_pw', 3600), +(7, 'withdraw_funds', 3600); CREATE TABLE IF NOT EXISTS `transactions` ( `id` int(255) NOT NULL AUTO_INCREMENT, diff --git a/sql/014_accounts_update.sql b/sql/014_accounts_update.sql index 821be3a9..ed7802c0 100644 --- a/sql/014_accounts_update.sql +++ b/sql/014_accounts_update.sql @@ -1,5 +1,5 @@ ALTER TABLE `accounts` ADD COLUMN `signup_timestamp` INT( 10 ) NOT NULL DEFAULT '0' AFTER `failed_pins`; ALTER TABLE `accounts` ADD COLUMN `notify_email` VARCHAR( 255 ) NULL DEFAULT NULL AFTER `email`; TRUNCATE TABLE `token_types`; -INSERT INTO `token_types` (`id`, `name`, `expiration`) VALUES (1, 'password_reset', 3600), (2, 'confirm_email', 0), (3, 'invitation', 0), (4, 'account_unlock', 0), (5, 'account_edit', 360), (6, 'change_pw', 360), (7, 'withdraw_funds', 360); +INSERT INTO `token_types` (`id`, `name`, `expiration`) VALUES (1, 'password_reset', 3600), (2, 'confirm_email', 0), (3, 'invitation', 0), (4, 'account_unlock', 0), (5, 'account_edit', 3600), (6, 'change_pw', 3600), (7, 'withdraw_funds', 3600); INSERT INTO `settings` (`name`, `value`) VALUES ('DB_VERSION', '0.0.4') ON DUPLICATE KEY UPDATE `value` = '0.0.4';