From 59d95d8e9fbd7ea48f43e4296cd8223c992d77d3 Mon Sep 17 00:00:00 2001
From: wuyuhan <woodwhale@qq.com>
Date: Fri, 21 Oct 2022 11:07:20 +0800
Subject: [PATCH] =?UTF-8?q?account=5Fservice.py:=20=E5=AF=BC=E5=85=A5re?=
 =?UTF-8?q?=E5=BA=93=E4=BD=BF=E7=94=A8=E6=AD=A3=E5=88=99=E5=8C=B9=E9=85=8D?=
 =?UTF-8?q?=E8=BF=87=E6=BB=A4=E4=BA=86=E6=B3=A8=E5=86=8C=E6=97=B6=E7=94=A8?=
 =?UTF-8?q?=E6=88=B7=E5=90=8D=E7=9A=84=E9=9D=9E=E6=B3=95=E5=AD=97=E7=AC=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/account_service.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/account_service.py b/app/account_service.py
index f97afb8..0e5cf7a 100644
--- a/app/account_service.py
+++ b/app/account_service.py
@@ -1,5 +1,6 @@
 from flask import *
 from Login import check_username_availability, verify_user, add_user, get_expiry_date, change_password
+import re
 
 # 初始化蓝图
 accountService = Blueprint("accountService", __name__)
@@ -19,6 +20,7 @@ def signup():
         # POST方法需判断是否注册成功,再根据结果返回不同的内容
         username = escape(request.form['username'])
         password = escape(request.form['password'])
+        
         #! 添加如下代码为了过滤注册时的非法字符
         if len(username) > 20:
             return '用户名过长'