From 00bdc4bad7ab265f6d78e38d90e0664f16dcbac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BF=97=E6=8C=BA?= Date: Wed, 26 Aug 2026 15:34:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=89=8D=E5=8F=B0=E8=87=AA?= =?UTF-8?q?=E5=8A=A9=E6=B3=A8=E5=86=8C=EF=BC=9A=E7=99=BB=E5=BD=95=E9=A1=B5?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=B3=A8=E5=86=8C=E9=93=BE=E6=8E=A5=EF=BC=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B3=A8=E5=86=8C=E9=A1=B5=E4=B8=8E/register?= =?UTF-8?q?/=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 4 -- templates/login.html | 2 +- templates/register.html | 98 ----------------------------------------- 3 files changed, 1 insertion(+), 103 deletions(-) delete mode 100644 templates/register.html diff --git a/app.py b/app.py index 3a712f9..9ecf16b 100644 --- a/app.py +++ b/app.py @@ -161,10 +161,6 @@ class PublicApp: return self._render('change_password.html', {}, request) - @app.route('/register/', methods=['GET']) - async def register(request): - return self._redirect('/admin/login/') - @app.route('/announcements/', methods=['GET']) async def announcement_list(request): user = self._get_optional_user(request) diff --git a/templates/login.html b/templates/login.html index 7e98335..e1947f0 100644 --- a/templates/login.html +++ b/templates/login.html @@ -77,7 +77,7 @@ body { diff --git a/templates/register.html b/templates/register.html deleted file mode 100644 index b6d52c4..0000000 --- a/templates/register.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - -注册 - {{ site_name }} - - - -
-
-

注册账号

-
加入社区,参与讨论
- {% if message %} -
{{ message }}
- {% endif %} - {% if error %} -
{{ error }}
- {% endif %} -
-
- - -
-
- - -
-
- - -
-
- - -
- -
- -
- -
- - \ No newline at end of file