diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html
index 9e3891b..120eeac 100644
--- a/app/templates/userpage_get.html
+++ b/app/templates/userpage_get.html
@@ -26,7 +26,10 @@
退出
重设密码
- {{ flashed_messages|safe }}
+ {% if flashed_messages != "" %}
+ {{ flashed_messages|safe }}
+ {% endif %}
+
下一篇 Next Article
{% if session.get('articleID') != session.get('old_articleID') %}
diff --git a/app/user_service.py b/app/user_service.py
index 79c7888..72200c5 100644
--- a/app/user_service.py
+++ b/app/user_service.py
@@ -181,7 +181,5 @@ def get_flashed_messages_if_any():
messages = get_flashed_messages()
s = ''
for message in messages:
- s += ''
- s += f'Congratulations! {message}'
- s += '
'
+ s += message
return s