Merge branch 'soon' into staging
This commit is contained in:
commit
a181c09a68
@ -608,6 +608,7 @@ define(function () {
|
|||||||
out.settings_changePasswordNewConfirm = "Confirmer le nouveau mot de passe";
|
out.settings_changePasswordNewConfirm = "Confirmer le nouveau mot de passe";
|
||||||
out.settings_changePasswordConfirm = "Êtes-vous sûr de vouloir changer votre mot de passe ? Vous devrez vous reconnecter sur tous vos appareils.";
|
out.settings_changePasswordConfirm = "Êtes-vous sûr de vouloir changer votre mot de passe ? Vous devrez vous reconnecter sur tous vos appareils.";
|
||||||
out.settings_changePasswordError = "Une erreur est survenue. Si vous n'êtes plus en mesure de vous connecter à votre compte utilisateur ou de changer votre mot de passe, veuillez contacter l'administrateur de votre CryptPad.";
|
out.settings_changePasswordError = "Une erreur est survenue. Si vous n'êtes plus en mesure de vous connecter à votre compte utilisateur ou de changer votre mot de passe, veuillez contacter l'administrateur de votre CryptPad.";
|
||||||
|
out.settings_changePasswordPending = "Votre mot de passe est en train d'être modifié. Veuillez ne pas fermer ou recharger cette page avant que le traitement soit terminé.";
|
||||||
|
|
||||||
out.upload_title = "Hébergement de fichiers";
|
out.upload_title = "Hébergement de fichiers";
|
||||||
out.upload_modal_title = "Options d'importation du fichier";
|
out.upload_modal_title = "Options d'importation du fichier";
|
||||||
|
|||||||
@ -617,6 +617,7 @@ define(function () {
|
|||||||
out.settings_changePasswordNewConfirm = "Confirm new password";
|
out.settings_changePasswordNewConfirm = "Confirm new password";
|
||||||
out.settings_changePasswordConfirm = "Are you sure you want to change your password? You will need to log back in on all your devices.";
|
out.settings_changePasswordConfirm = "Are you sure you want to change your password? You will need to log back in on all your devices.";
|
||||||
out.settings_changePasswordError = "An unexpected error occurred. If you are unable to login or change your password, contact your CryptPad administrators.";
|
out.settings_changePasswordError = "An unexpected error occurred. If you are unable to login or change your password, contact your CryptPad administrators.";
|
||||||
|
out.settings_changePasswordPending = "Your password is being updated. Please do not close or reload this page until the process has completed.";
|
||||||
|
|
||||||
out.upload_title = "File upload";
|
out.upload_title = "File upload";
|
||||||
out.upload_modal_title = "File upload options";
|
out.upload_modal_title = "File upload options";
|
||||||
|
|||||||
@ -431,10 +431,16 @@ define([
|
|||||||
UI.confirm(Messages.settings_changePasswordConfirm,
|
UI.confirm(Messages.settings_changePasswordConfirm,
|
||||||
function (yes) {
|
function (yes) {
|
||||||
if (!yes) { return; }
|
if (!yes) { return; }
|
||||||
|
|
||||||
|
UI.addLoadingScreen({
|
||||||
|
hideTips: true,
|
||||||
|
loadingText: Messages.settings_changePasswordPending,
|
||||||
|
});
|
||||||
updateBlock({
|
updateBlock({
|
||||||
password: oldPassword,
|
password: oldPassword,
|
||||||
newPassword: newPassword
|
newPassword: newPassword
|
||||||
}, function (obj) {
|
}, function (obj) {
|
||||||
|
UI.removeLoadingScreen();
|
||||||
if (obj && obj.error) {
|
if (obj && obj.error) {
|
||||||
// TODO
|
// TODO
|
||||||
UI.alert(Messages.settings_changePasswordError);
|
UI.alert(Messages.settings_changePasswordError);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user