From fa39f48a340acedd734f6b60d69bc2949469a373 Mon Sep 17 00:00:00 2001
From: Teptao <1650163832@qq.com>
Date: Sat, 11 Oct 2025 19:43:00 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BD=BF=E7=94=A8=E7=94=A8?=
=?UTF-8?q?=E6=88=B7=E5=90=8D=E7=99=BB=E5=BD=95=E6=97=B6=E6=97=A0=E6=B3=95?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/artifacts/TestSystem_jar.xml | 15 +++++++++++++
.idea/workspace.xml | 21 +++++++++++++-----
data/users.txt | 2 +-
.../com/mathapp/services/DataPersistence.java | 2 +-
.../mathapp/services/DataPersistence.class | Bin 8825 -> 8843 bytes
5 files changed, 32 insertions(+), 8 deletions(-)
create mode 100644 .idea/artifacts/TestSystem_jar.xml
diff --git a/.idea/artifacts/TestSystem_jar.xml b/.idea/artifacts/TestSystem_jar.xml
new file mode 100644
index 0000000..9749be4
--- /dev/null
+++ b/.idea/artifacts/TestSystem_jar.xml
@@ -0,0 +1,15 @@
+
+
+ $PROJECT_DIR$/out/artifacts/TestSystem_jar
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index d14cfa1..6eb2a49 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,16 +1,18 @@
+
+
+
+
+
+
-
-
-
-
@@ -40,11 +42,15 @@
+
+
{
"customColor": "",
"associatedIndex": 1
@@ -58,6 +64,7 @@
+
+
diff --git a/data/users.txt b/data/users.txt
index 2598ee0..e102e26 100644
--- a/data/users.txt
+++ b/data/users.txt
@@ -1,4 +1,4 @@
test@example.com::jZae727K08KaOmKSgOaGzww/XVqLqBG7KAbpTTJzaI0=
-Tester::1650163832@qq.com::7RcqFZEiXA1x7ggr5Sy2xvdMuJb6Xz/P8aMMmj+PZbI=
+Tester::Tester::7RcqFZEiXA1x7ggr5Sy2xvdMuJb6Xz/P8aMMmj+PZbI=
Tester2::1414246561@qq.com::7RcqFZEiXA1x7ggr5Sy2xvdMuJb6Xz/P8aMMmj+PZbI=
diff --git a/src/main/java/com/mathapp/services/DataPersistence.java b/src/main/java/com/mathapp/services/DataPersistence.java
index 44276ec..bd06bc1 100644
--- a/src/main/java/com/mathapp/services/DataPersistence.java
+++ b/src/main/java/com/mathapp/services/DataPersistence.java
@@ -82,7 +82,7 @@ public class DataPersistence {
List lines = Files.readAllLines(USER_FILE_PATH, StandardCharsets.UTF_8);
for (int i = 0; i < lines.size(); i++) {
String[] parts = lines.get(i).split("::");
- if (parts.length >= 3 && parts[1].equals(email)) {
+ if (parts.length >= 3 && parts[1].equals(email) || parts[0].equals(email)) {
User tempUser = new User(parts[0], email, newPassword);
lines.set(i, parts[0] + "::" + email + "::" + tempUser.getHashedPassword());
Files.write(USER_FILE_PATH, lines, StandardCharsets.UTF_8);
diff --git a/target/classes/com/mathapp/services/DataPersistence.class b/target/classes/com/mathapp/services/DataPersistence.class
index 833b4a9807a43cf68226038041e7f14247518d30..381c2c5b6dce17f42dd3f3959fa95ea0759e9458 100644
GIT binary patch
delta 471
zcmYL^(MwZd7{;Gx=eU!H!xmd4dN$^|$kah4wl-&Txy{_xLR4zS$_sa+p?4;(Km;em
zz?;u2uS72-=wf(aseeRW_oplt^m=yD&Bw#@zAwMu*U2^WtyVxYm~dJFQvC`Jsh`0g
z{t}<~y<9aBX3b*3IlA-38>yiWUI5Jtgf4LJ5^H5G9gbaLgE+;edT0;$eS^9_G1kWJ
zF(hiLXy@$1bKEM&+DK{N;gS0~_L0PA>|tMhv%|YNyv7pVU>z0g;H^xSWcER}s%YRn
zzG8(@xtoU}lLw4*R7^&&%%@C1hlMRBIRyi`4!2J|&n=Gl{k$2&n
iom-{F)=X^
zH=aL&AL17X61$hg;GDCwve#bUKBvi##O~butUB1%GImyv2d8Jg)U~@sN}MT
zrgdI?;0lbx2^WClJ5=1E>Io}pt+z7rj1A%nS=Hz-)stnquBQBnql;_gr6UjM(r(}o
z(-w9S#Wr^AS7%VPHWbJ`4mT!Hf=PriB|XzHF@q({ViR-Xm=MpRxH8zo0uHgnkhn}3
za%$PeI>8Df#ddZ;hX<>SvNHos#;zmAE{WfR&KibokYhHnK?cYk?3Rjbmf8dU_4mNR
zh$zKye#2v6lb^_bz!^6X)sfF$_F4NC8AmF{eqngQWiC%XCLXPH1q;$n=$
zk`N7JY++I~ohSb=JmnyVR4}kcQ=J7yeJLBwfY;uJMQ#qO_rQF0PN$@m*!nM^8;&pd
e4UWWeeWT*1