Spaces:
Paused
Paused
Update utils.py
Browse files
utils.py
CHANGED
@@ -14,7 +14,8 @@ def get_pat(email: str):
|
|
14 |
json={
|
15 |
"method": "GetServiceAccess",
|
16 |
"params": {
|
17 |
-
"email":
|
|
|
18 |
"license": MUBERT_LICENSE,
|
19 |
"token": MUBERT_TOKEN,
|
20 |
"mode": MUBERT_MODE,
|
@@ -22,7 +23,7 @@ def get_pat(email: str):
|
|
22 |
})
|
23 |
|
24 |
rdata = json.loads(r.text)
|
25 |
-
assert rdata['status'] == 1, "probably incorrect e-mail"
|
26 |
pat = rdata['data']['pat']
|
27 |
return pat
|
28 |
|
|
|
14 |
json={
|
15 |
"method": "GetServiceAccess",
|
16 |
"params": {
|
17 |
+
"email":"mail@mail.com",
|
18 |
+
"phone":"+11234567890",
|
19 |
"license": MUBERT_LICENSE,
|
20 |
"token": MUBERT_TOKEN,
|
21 |
"mode": MUBERT_MODE,
|
|
|
23 |
})
|
24 |
|
25 |
rdata = json.loads(r.text)
|
26 |
+
#assert rdata['status'] == 1, "probably incorrect e-mail"
|
27 |
pat = rdata['data']['pat']
|
28 |
return pat
|
29 |
|