diff --git a/0002-bugfix-for-no-check-newpassword-at-modifypwd.patch b/0002-bugfix-for-no-check-newpassword-at-modifypwd.patch new file mode 100644 index 0000000000000000000000000000000000000000..e1d9aca8528c4efa11af6b3334c915cec646ba7f --- /dev/null +++ b/0002-bugfix-for-no-check-newpassword-at-modifypwd.patch @@ -0,0 +1,37 @@ +From 7c3f94d4d68b2da28b9abfb644fadae551373481 Mon Sep 17 00:00:00 2001 +From: desert-sailor +Date: Fri, 31 Mar 2023 11:00:44 +0800 +Subject: [PATCH] bugfix for issue:I6QIOR modify passwd no check newpassword + +--- + .../window/modules/accounts/modifypasswdpage.cpp | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) + +diff --git a/src/frame/window/modules/accounts/modifypasswdpage.cpp b/src/frame/window/modules/accounts/modifypasswdpage.cpp +index a270ae5..37bdd8d 100644 +--- a/src/frame/window/modules/accounts/modifypasswdpage.cpp ++++ b/src/frame/window/modules/accounts/modifypasswdpage.cpp +@@ -152,6 +152,20 @@ void ModifyPasswdPage::clickSaveBtn() + { + //校验输入密码 + if (judgeTextEmpty(m_oldPasswordEdit)) return; ++ if (judgeTextEmpty(m_newPasswordEdit)) return; ++ ++ if (m_newPasswordEdit->lineEdit()->text() == m_oldPasswordEdit->lineEdit()->text() ) { ++ m_newPasswordEdit->setAlert(true); ++ m_newPasswordEdit->showAlertMessage(tr("New password should differ from the current one"), m_oldPasswordEdit, 2000); ++ return; ++ } ++ ++ if (judgeTextEmpty(m_repeatPasswordEdit)) return; ++ if (m_newPasswordEdit->lineEdit()->text() != m_repeatPasswordEdit->lineEdit()->text()) { ++ m_repeatPasswordEdit->setAlert(true); ++ m_repeatPasswordEdit->showAlertMessage(tr("Passwords do not match"), m_repeatPasswordEdit, 2000); ++ return; ++ } + + Q_EMIT requestChangePassword(m_curUser, m_oldPasswordEdit->lineEdit()->text(), m_newPasswordEdit->lineEdit()->text(), m_repeatPasswordEdit->lineEdit()->text()); + } +-- +2.33.0 + diff --git a/dde-control-center.spec b/dde-control-center.spec index c4e6fd8effb185dacf6d95f744dda3ecc3b5802c..45f259988fc63ac099c74eb3f585193af9c5ad2b 100644 --- a/dde-control-center.spec +++ b/dde-control-center.spec @@ -1,6 +1,6 @@ %define specrelease 1%{?dist} %if 0%{?openeuler} -%define specrelease 4 +%define specrelease 5 %endif Name: dde-control-center @@ -11,6 +11,7 @@ License: GPLv3 URL: https://github.com/linuxdeepin/%{name} Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Patch0: 0001-hide-authorized.patch +Patch1: 0002-bugfix-for-no-check-newpassword-at-modifypwd.patch BuildRequires: gcc-c++ BuildRequires: desktop-file-utils @@ -109,6 +110,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||: %{_libdir}/cmake/DdeControlCenter/ %changelog +* Fri Mar 31 2023 Dongxing Wang - 5.4.43.27-5 +- fix: issue#I6QIOR bugfix-for-no-check-newpassword-at-modifypwd + * Wed Aug 10 2022 liweiganga - 5.4.43.27-4 - fix: issue#I5LI5A