From 260f62967bd997b61fd4389252c552614a1c369d Mon Sep 17 00:00:00 2001
From: miaochenshuo <miaochenshuo>
Date: Sun, 5 Jun 2022 23:36:55 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Bug394?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/Login.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/app/Login.py b/app/Login.py
index 65047f7..f1317b2 100644
--- a/app/Login.py
+++ b/app/Login.py
@@ -5,6 +5,10 @@ from UseSqlite import InsertQuery, RecordQuery
 path_prefix = '/var/www/wordfreq/wordfreq/'
 path_prefix = './'  # comment this line in deployment
 
+def verify_pass(newpass,oldpass):
+    if(newpass==oldpass):
+        return True
+
 
 def verify_user(username, password):
     rq = RecordQuery(path_prefix + 'static/wordfreqapp.db')
@@ -47,6 +51,8 @@ def change_password(username, old_password, new_password):
     if not verify_user(username, old_password):  # 旧密码错误
         return False
     # 将用户名和密码一起加密,以免暴露不同用户的相同密码
+    if verify_pass(new_password,old_password): #新旧密码一致
+        return False
     password = md5(username + new_password)
     rq = InsertQuery(path_prefix + 'static/wordfreqapp.db')
     rq.instructions_with_parameters("UPDATE user SET password=:password WHERE name=:username", dict(

From 5d5f4cf8f2c70b6ef150ddb1d00a5b41a20b1ddf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E5=87=AF?= <1183989703@qq.com>
Date: Sat, 11 Jun 2022 23:13:08 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'app/Article.py'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/Article.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/Article.py b/app/Article.py
index 774d25a..04a32ea 100644
--- a/app/Article.py
+++ b/app/Article.py
@@ -68,7 +68,7 @@ def get_today_article(user_word_list, articleID):
     s += '<div class="p-3 mb-2 bg-light text-dark">'
     article_title = get_article_title(d['text'])
     article_body = get_article_body(d['text'])
-    s += '<p class="display-3">%s</p>' % (article_title)
+    s += '<p class="display-5">%s</p>' % (article_title)
     s += '<p class="lead"><font id="article" size=2>%s</font></p>' % (article_body)
     s += '<p><small class="text-muted">%s</small></p>' % (d['source'])
     s += '<p><b>%s</b></p>' % (get_question_part(d['question']))

From fde3be4c232fdcbea0e571425bcffe571df14f3f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E5=87=AF?= <1183989703@qq.com>
Date: Sat, 11 Jun 2022 23:21:17 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'app/Article.py'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/Article.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/Article.py b/app/Article.py
index 04a32ea..774d25a 100644
--- a/app/Article.py
+++ b/app/Article.py
@@ -68,7 +68,7 @@ def get_today_article(user_word_list, articleID):
     s += '<div class="p-3 mb-2 bg-light text-dark">'
     article_title = get_article_title(d['text'])
     article_body = get_article_body(d['text'])
-    s += '<p class="display-5">%s</p>' % (article_title)
+    s += '<p class="display-3">%s</p>' % (article_title)
     s += '<p class="lead"><font id="article" size=2>%s</font></p>' % (article_body)
     s += '<p><small class="text-muted">%s</small></p>' % (d['source'])
     s += '<p><b>%s</b></p>' % (get_question_part(d['question']))