From add80a9f6c2867f2e068c1fe8ec04c467bee5bf5 Mon Sep 17 00:00:00 2001 From: emeric Date: Mon, 12 Aug 2019 13:36:53 +0200 Subject: [PATCH] Now checking old password when the user wants to change it (and if he is authenticated using an auth token) --- approot/messages.xml | 3 ++ approot/messages_fr.xml | 5 ++- approot/settings.xml | 13 ++++++++ src/ui/LmsApplication.cpp | 21 ++++++++----- src/ui/LmsApplication.hpp | 6 ++-- src/ui/SettingsView.cpp | 64 +++++++++++++++++++++++++++++++++++---- 6 files changed, 95 insertions(+), 17 deletions(-) diff --git a/approot/messages.xml b/approot/messages.xml index 3f7cc85c..64a018fb 100644 --- a/approot/messages.xml +++ b/approot/messages.xml @@ -16,6 +16,7 @@ Bad login / password combination Login throttled, please try again later Confirm password +Old password Password too weak Passwords don't match Are you sure? @@ -136,6 +137,8 @@ Account Audio Cannot save using a demo account! +Bad password +Old password must be filled in Transcoding Transcode bitrate Transcode format diff --git a/approot/messages_fr.xml b/approot/messages_fr.xml index 64db088b..9b7b2ab5 100644 --- a/approot/messages_fr.xml +++ b/approot/messages_fr.xml @@ -16,6 +16,7 @@ Mauvaise combinaison login / mot de passe Trop de tentatives de connexion, veuillez réessayer plus tard Confirmation du mot de passe +Ancien mot de passe Mot de passe trop faible Les mots de passe ne correspondent pas Êtes-vous sûr ? @@ -137,6 +138,8 @@ Audio Auto Impossible de sauvegarder en utilisant un compte de démo ! +Mauvais mot de passe +L'ancien mot de passe doit être renseigné Transcodage Bitrate du transcodage Format du transcodage @@ -151,5 +154,5 @@ Oui Non - +Ce champ ne peut pas être vide diff --git a/approot/settings.xml b/approot/settings.xml index 1b2d303b..5a56a11e 100644 --- a/approot/settings.xml +++ b/approot/settings.xml @@ -45,6 +45,19 @@ ${tr:Lms.Settings.account}
+ ${} +
+ +
+ ${password-old} +
+
+ ${password-old-info} +
+
+ ${
}