Atualli commited on
Commit
d0794d4
1 Parent(s): 4798af6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -13
app.py CHANGED
@@ -58,19 +58,11 @@ def novofrontimg(file):
58
 
59
  @ app.route('/autentica', methods=['GET'])
60
  def autentica():
61
- newurl = 'http://painel.atualli.com/autentica'
62
- data1 = request.get_data()
63
- print(data1)
64
- res = requests.request(
65
- method = 'GET',
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