mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
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:
parent
ceb7ea7550
commit
a789fb73f4
4 changed files with 25 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue