Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -444,11 +444,13 @@ def get_auth_credentials():
|
|
| 444 |
data = response.json()
|
| 445 |
if data.get('status') == 'success' and data.get('content'):
|
| 446 |
content = data['content']
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
|
|
|
|
|
|
| 452 |
else:
|
| 453 |
logger.error(f"Invalid API response: {data}")
|
| 454 |
else:
|
|
|
|
| 444 |
data = response.json()
|
| 445 |
if data.get('status') == 'success' and data.get('content'):
|
| 446 |
content = data['content']
|
| 447 |
+
credentials = []
|
| 448 |
+
# 分割多个凭据(如果有的话)
|
| 449 |
+
for cred in content.split(';'):
|
| 450 |
+
if '|' in cred:
|
| 451 |
+
email, password = cred.strip().split('|')
|
| 452 |
+
credentials.append((email.strip(), password.strip()))
|
| 453 |
+
return credentials
|
| 454 |
else:
|
| 455 |
logger.error(f"Invalid API response: {data}")
|
| 456 |
else:
|