|
|
@@ -239,11 +239,11 @@ class OAuthService:
|
|
|
cursor = conn.cursor()
|
|
|
|
|
|
try:
|
|
|
- # 从数据库查找授权码
|
|
|
+ # 从数据库查找授权码 AND is_deleted = 0
|
|
|
cursor.execute("""
|
|
|
SELECT user_id, app_id, redirect_uri, expires_at, used
|
|
|
FROM t_oauth_authorization_codes
|
|
|
- WHERE code = %s AND is_deleted = 0
|
|
|
+ WHERE code = %s
|
|
|
""", (code,))
|
|
|
|
|
|
auth_code = cursor.fetchone()
|