Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -58,19 +58,11 @@ def novofrontimg(file):
|
|
58 |
|
59 |
@ app.route('/autentica', methods=['GET'])
|
60 |
def autentica():
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
url = newurl,
|
67 |
-
headers = {k:v for k,v in request.headers if k.lower() == 'host'},
|
68 |
-
data = request.get_data(),
|
69 |
-
cookies = request.cookies,
|
70 |
-
allow_redirects = False,
|
71 |
-
)
|
72 |
-
|
73 |
-
response = Response(res.content, res.status_code, res.headers)
|
74 |
return response
|
75 |
|
76 |
|
|
|
58 |
|
59 |
@ app.route('/autentica', methods=['GET'])
|
60 |
def autentica():
|
61 |
+
email = request.args.get('email')
|
62 |
+
passw = request.args.get('passw')
|
63 |
+
newurl = 'http://painel.atualli.com/autentica?email='+email+'&passw='+passw
|
64 |
+
|
65 |
+
response = requests.get(newurl)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
return response
|
67 |
|
68 |
|