diff --git a/0001-change-password-prompt.patch b/0001-change-password-prompt.patch new file mode 100644 index 0000000000000000000000000000000000000000..7c1129f537dd46999705085de70d8e40954114c4 --- /dev/null +++ b/0001-change-password-prompt.patch @@ -0,0 +1,105 @@ +From a797b534cb017b7cd3f088c337aef29aa752879f Mon Sep 17 00:00:00 2001 +From: wangqi +Date: Mon, 8 Sep 2025 15:17:36 +0800 +Subject: [PATCH] change password prompt + +--- + src/frame/window/modules/accounts/modifypasswdpage.cpp | 6 ++++++ + translations/dde-control-center_en.ts | 8 +++++++- + translations/dde-control-center_zh_CN.ts | 5 +++++ + translations/dde-control-center_zh_HK.ts | 5 +++++ + translations/dde-control-center_zh_TW.ts | 5 +++++ + 5 files changed, 28 insertions(+), 1 deletion(-) + +diff --git a/src/frame/window/modules/accounts/modifypasswdpage.cpp b/src/frame/window/modules/accounts/modifypasswdpage.cpp +index 3a83915..ca00b82 100644 +--- a/src/frame/window/modules/accounts/modifypasswdpage.cpp ++++ b/src/frame/window/modules/accounts/modifypasswdpage.cpp +@@ -253,6 +253,12 @@ void ModifyPasswdPage::onPasswordChangeFinished(const int exitCode, const QStrin + qDebug() << "exit code:" << exitCode << "error text:" << errorTxt << "error type:" << error + << "error tips:" << PwqualityManager::instance()->getErrorTips(error); + if (exitCode != 0) { ++ if (errorTxt.contains("You must wait longer to change your password")) { ++ m_oldPasswordEdit->setAlert(true); ++ m_oldPasswordEdit->showAlertMessage(tr("You must wait longer to change your password")); ++ m_oldPasswordEdit->lineEdit()->selectAll(); ++ return; ++ } + if (errorTxt.startsWith("Current Password: passwd:", Qt::CaseInsensitive)) { + m_oldPasswordEdit->setAlert(true); + m_oldPasswordEdit->showAlertMessage(tr("Wrong password")); +diff --git a/translations/dde-control-center_en.ts b/translations/dde-control-center_en.ts +index 5f61a40..3fa9dba 100644 +--- a/translations/dde-control-center_en.ts ++++ b/translations/dde-control-center_en.ts +@@ -540,6 +540,12 @@ + Wrong password + Wrong password + ++ ++ ++ You must wait longer to change your password ++ You must wait longer to change your password ++ ++ + + + New password should differ from the current one +@@ -6488,4 +6494,4 @@ UnionTech Software is committed to research and improve the security, accuracy a + Control Center provides the options for system settings. + + +- +\ No newline at end of file ++ +diff --git a/translations/dde-control-center_zh_CN.ts b/translations/dde-control-center_zh_CN.ts +index 3d5e66b..92d2d6f 100644 +--- a/translations/dde-control-center_zh_CN.ts ++++ b/translations/dde-control-center_zh_CN.ts +@@ -540,6 +540,11 @@ + Wrong password + 密码错误 + ++ ++ ++ You must wait longer to change your password ++ 您必须等待更长时间以更改密码 ++ + + + New password should differ from the current one +diff --git a/translations/dde-control-center_zh_HK.ts b/translations/dde-control-center_zh_HK.ts +index 2adaccd..6e588e2 100644 +--- a/translations/dde-control-center_zh_HK.ts ++++ b/translations/dde-control-center_zh_HK.ts +@@ -540,6 +540,11 @@ + Wrong password + 密碼錯誤 + ++ ++ ++ You must wait longer to change your password ++ 您必須久候,以更改您的密碼 ++ + + + New password should differ from the current one +diff --git a/translations/dde-control-center_zh_TW.ts b/translations/dde-control-center_zh_TW.ts +index de875ec..f6d6f00 100644 +--- a/translations/dde-control-center_zh_TW.ts ++++ b/translations/dde-control-center_zh_TW.ts +@@ -540,6 +540,11 @@ + Wrong password + 密碼錯誤 + ++ ++ ++ You must wait longer to change your password ++ 您必須久候,以更改您的密碼 ++ + + + New password should differ from the current one +-- +2.43.0 + diff --git a/dde-control-center.spec b/dde-control-center.spec index 0a2051ec124d40e5801cc06d20b3b68df24f6137..897604abdb74411b8c1efc4cf7cfc036eedc2d3c 100644 --- a/dde-control-center.spec +++ b/dde-control-center.spec @@ -1,6 +1,6 @@ Name: dde-control-center Version: 5.5.182 -Release: 5 +Release: 6 Summary: New control center for Linux Deepin License: GPLv3 URL: https://github.com/linuxdeepin/dde-control-center @@ -158,6 +158,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||: %{_libdir}/cmake/DdeControlCenter/ %changelog +* Mon Sep 08 2025 wangqia - 5.5.182-6 +- fix: change password prompt + * Fri Apr 12 2024 liuzhilin - 5.5.182-5 - backport del buildrequires