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