[Enhance] Account Endpoints

- Adapt to new account registration and login endpoints.
- For Arcaea 6.3.2
This commit is contained in:
Lost-MSth
2025-03-28 00:37:32 +08:00
parent 3424ad67cb
commit c4da67cd94
7 changed files with 89 additions and 11 deletions

View File

@@ -36,12 +36,6 @@ def login():
return jsonify({"success": True, "token_type": "Bearer", 'user_id': user.user_id, 'access_token': user.token})
@bp.route('/verify', methods=['POST']) # 邮箱验证进度查询
@arc_try
def email_verify():
raise ArcError('Email verification unavailable.', 151, status=404)
def auth_required(req):
# arcaea登录验证写成了修饰器
def decorator(view):