diff --git a/0010-verify-user-password-disabled-by-button.patch b/0010-verify-user-password-disabled-by-button.patch new file mode 100644 index 0000000000000000000000000000000000000000..c439fe2af3ae2b1dd660abef1d290d876cd80b8c --- /dev/null +++ b/0010-verify-user-password-disabled-by-button.patch @@ -0,0 +1,43 @@ +From f8047aa03c724ac36d9e042f9f64608fd4ca4750 Mon Sep 17 00:00:00 2001 +From: lihaipeng +Date: Wed, 4 Sep 2024 16:26:02 +0800 +Subject: [PATCH] verify user password is disabled by button + +--- + templates/MT_check_root.html | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/templates/MT_check_root.html b/templates/MT_check_root.html +index b2a3955..9b70749 100755 +--- a/templates/MT_check_root.html ++++ b/templates/MT_check_root.html +@@ -72,7 +72,7 @@ +
+
+
+- ++ + + + +@@ -97,6 +97,9 @@ + check_user_data_json.ip = "tasks" + document.getElementById('check_id').style.opacity = 0.2 + document.getElementById('check_id').setAttribute("disabled", true); ++ ++ document.getElementById('last_step').style.opacity = 0.2 ++ document.getElementById('last_step').setAttribute("disabled", true); + info = document.getElementById("uname_id").value + "|" + document.getElementById("machine_password").value + $.ajax({ + async:true, +@@ -122,6 +125,7 @@ + } + + function close_tool() { ++ document.getElementById('last_step').setAttribute("disabled", true); + window.location.href="MT_check_env" + } + +-- +2.43.0 + diff --git a/migration-tools.spec b/migration-tools.spec index 5ca6e9b552bb86a054f9b71039156880194e8209..10c6f6f05533707d63e042f575e6c5119c6cc15e 100644 --- a/migration-tools.spec +++ b/migration-tools.spec @@ -1,6 +1,6 @@ Name: migration-tools Version: 1.0.1 -Release: 12 +Release: 13 License: MulanPSL-2.0 Summary: A tool to help users migrate the Centos system to the UOS system and openEuler system Source0: migration-tools.tar.gz @@ -16,6 +16,7 @@ Patch5: 0006-return-button-after-successful-migration.patch Patch6: 0007-user-name-input-diversity.patch Patch7: 0008-software-source-input-box-diversity.patch Patch8: 0009-disable-button-for-system-type-and-space.patch +Patch9: 0010-verify-user-password-disabled-by-button.patch # CVE patches: >= 100 Patch100: 100-CVE-2024-24892.patch @@ -70,6 +71,7 @@ Migration software server side %patch 6 -p1 %patch 7 -p1 %patch 8 -p1 +%patch 9 -p1 %patch 100 -p1 %if 0%{?openEuler} @@ -125,6 +127,9 @@ rm -rf /usr/bin/migration-tools %endif %changelog +* Wed Sep 04 2024 lihaipeng - 1.0.1-13 +- verify user password is disabled by button + * Wed Sep 04 2024 lihaipeng - 1.0.1-12 - disable button for system type and space verification