More security for email confirmation process ... a 15-character random

"secret" key is stored the user record on account creation, sent via
email and checked again during confirmation.
This commit is contained in:
martin 2002-09-10 12:54:01 +00:00
parent ceb7ea7550
commit a789fb73f4
4 changed files with 25 additions and 5 deletions

View file

@ -18,7 +18,7 @@
// If there's something it cannot do itself, it
// will tell you what you need to do.
$version = 2002090900; // The current version is a date (YYYYMMDDXX) where
$version = 2002091000; // The current version is a date (YYYYMMDDXX) where
// XX is a number that increments during the day
$release = "1.0.4"; // For humans only, not used for the upgrade process
@ -71,6 +71,9 @@ function upgrade_moodle($oldversion=0) {
execute_sql(" ALTER TABLE `course` ADD `teachers` VARCHAR( 100 ) DEFAULT 'Teachers' NOT NULL AFTER `teacher` ");
execute_sql(" ALTER TABLE `course` ADD `students` VARCHAR( 100 ) DEFAULT 'Students' NOT NULL AFTER `student` ");
}
if ($oldversion < 2002091000) {
execute_sql(" ALTER TABLE `user` CHANGE `personality` `secret` VARCHAR( 15 ) DEFAULT NULL ");
}
return true;
}