arry data
This commit is contained in:
@@ -331,12 +331,7 @@ def verify_register():
|
||||
data = request.json
|
||||
# print(data)
|
||||
vrl = data['verify_link']
|
||||
print( vrl )
|
||||
# try:
|
||||
# data = jwt.decode(vrL, app.config['SECRET_KEY'], algorithms=["HS256"])
|
||||
# except:
|
||||
# return jsonify({'status': 'INVALID', 'message': 'Link is invalid'}),403
|
||||
|
||||
#print( vrl )
|
||||
if not vrl:
|
||||
return jsonify({'message': 'Error - missing verify link'}), 403
|
||||
try:
|
||||
@@ -344,11 +339,6 @@ def verify_register():
|
||||
except:
|
||||
return jsonify({'status': 'INVALID', 'message': 'Link is invalid'}),403
|
||||
|
||||
# print(data)
|
||||
# print(data['user'])
|
||||
# print(data['user']['uid'])
|
||||
|
||||
|
||||
country = {
|
||||
"last_update": datetime.datetime.utcnow(),
|
||||
"list": [
|
||||
@@ -365,7 +355,10 @@ def verify_register():
|
||||
account = cursor.fetchall()
|
||||
print(account[0])
|
||||
|
||||
return jsonify(status="VALID", user=account[0], pending_uid=user_uid,country=country)
|
||||
productJS = json.dumps( [dict(ix) for ix in account[0]] )
|
||||
user_array = json.loads(productJS)
|
||||
|
||||
return jsonify(status="VALID", user=user_array, pending_uid=user_uid,country=country)
|
||||
|
||||
|
||||
@app.route("/panel/auth/reset", methods=["POST"])
|
||||
|
||||
Reference in New Issue
Block a user