diff --git a/customize.dist/translations/messages.fr.js b/customize.dist/translations/messages.fr.js
index 3bcd145de..e31bd5a9b 100644
--- a/customize.dist/translations/messages.fr.js
+++ b/customize.dist/translations/messages.fr.js
@@ -250,6 +250,7 @@ define(function () {
"Êtes-vous sûr de vouloir continuer ?
" +
"Tapez “I love CryptPad” pour confirmer.";
out.settings_resetDone = "Votre drive est désormais vide!";
+ out.settings_resetError = "Texte de vérification incorrect. Votre CryptDrive n'a pas été modifié.";
out.settings_resetTips = "Astuces et informations dans CryptDrive";
out.settings_resetTipsButton = "Réinitialiser les astuces visibles dans CryptDrive";
out.settings_resetTipsDone = "Toutes les astuces sont de nouveau visibles.";
diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js
index 479cde75f..c32f346eb 100644
--- a/customize.dist/translations/messages.js
+++ b/customize.dist/translations/messages.js
@@ -252,6 +252,7 @@ define(function () {
"Are you sure you want to continue?
" +
"Type “I love CryptPad” to confirm.";
out.settings_resetDone = "Your drive is now empty!";
+ out.settings_resetError = "Incorrect verification text. Your CryptDrive has not been changed.";
out.settings_resetTips = "Tips in CryptDrive";
out.settings_resetTipsButton = "Reset the available tips in CryptDrive";
out.settings_resetTipsDone = "All the tips are now visible again.";
diff --git a/www/settings/main.js b/www/settings/main.js
index bbb7d4524..ab3330ccd 100644
--- a/www/settings/main.js
+++ b/www/settings/main.js
@@ -165,7 +165,10 @@ define([
$button.click(function () {
Cryptpad.prompt(Messages.settings_resetPrompt, "", function (val) {
- if (val !== "I love CryptPad") { return; }
+ if (val !== "I love CryptPad") {
+ Cryptpad.alert(Messages.settings_resetError);
+ return;
+ }
obj.proxy.drive = Cryptpad.getStore().getEmptyObject();
Cryptpad.alert(Messages.settings_resetDone);
});