关闭前台自助注册:登录页去除注册链接,删除注册页与/register/路由

This commit is contained in:
张志挺
2026-08-26 15:34:05 +08:00
parent 36ac5f737b
commit 00bdc4bad7
3 changed files with 1 additions and 103 deletions
-4
View File
@@ -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)