diff --git a/app/Migrations/Schema/V111/Version20171002154600.php b/app/Migrations/Schema/V111/Version20171002154600.php deleted file mode 100644 index 26f91daa12..0000000000 --- a/app/Migrations/Schema/V111/Version20171002154600.php +++ /dev/null @@ -1,34 +0,0 @@ -addSql("INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_registration', 'confirmation', 'MailConfirmation')"); - } - - /** - * @param Schema $schema - */ - public function down(Schema $schema) - { - $this->addSql("DELETE settings_options WHERE variable='allow_registration' AND value='confirmation' AND display_text='MailConfirmation'"); - } -} diff --git a/main/install/configuration.dist.php b/main/install/configuration.dist.php index d20cdd94d7..6b7e0faa4d 100755 --- a/main/install/configuration.dist.php +++ b/main/install/configuration.dist.php @@ -694,3 +694,8 @@ $_configuration['gradebook_badge_sidebar'] = [ // Allow session admin to read careers //$_configuration['allow_session_admin_read_careers'] = true; + +// Add user activation by confirmation email +// This option prevents the new user to login in the platform if your account is not confirmed via email +// You need add a new option called "confirmation" to the registration settings +//INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_registration', 'confirmation', 'MailConfirmation') diff --git a/main/install/data.sql b/main/install/data.sql index ab56e6e7b7..14df38a6ab 100644 --- a/main/install/data.sql +++ b/main/install/data.sql @@ -336,7 +336,6 @@ VALUES ('allow_registration','true','Yes'), ('allow_registration','false','No'), ('allow_registration','approval','AfterApproval'), -('allow_registration','confirmation','MailConfirmation'), ('allow_registration_as_teacher','true','Yes'), ('allow_registration_as_teacher','false','No'), ('allow_lostpassword','true','Yes'),