counmtry
This commit is contained in:
@@ -344,20 +344,26 @@ 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)
|
||||||
print(data['user'])
|
# print(data['user'])
|
||||||
print(data['user']['uid'])
|
# print(data['user']['uid'])
|
||||||
|
|
||||||
user_uid = 'a4b75649-e3c5-424f-bcdb-5481e625d24b'
|
country = {
|
||||||
FIND_USER_DETAIL= "SELECT firstname,lastname,email FROM members_pending WHERE uid::text = '"+user_uid+"'"
|
[
|
||||||
|
{"code":"US","description": "United States", },
|
||||||
|
{"code":"NG","description": "Nigeria", },
|
||||||
|
]
|
||||||
|
}
|
||||||
|
user_uid = data['user']['uid']
|
||||||
|
#'a4b75649-e3c5-424f-bcdb-5481e625d24b'
|
||||||
|
FIND_USER_DETAIL= "SELECT firstname,lastname,email, uid FROM members_pending WHERE uid::text = '"+user_uid+"'"
|
||||||
with connection:
|
with connection:
|
||||||
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
||||||
cursor.execute(FIND_USER_DETAIL)
|
cursor.execute(FIND_USER_DETAIL)
|
||||||
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)
|
||||||
return jsonify(status="VALID", user=account[0], pending_uid=user_uid,country=[])
|
|
||||||
|
|
||||||
|
|
||||||
@app.route("/panel/auth/reset", methods=["POST"])
|
@app.route("/panel/auth/reset", methods=["POST"])
|
||||||
|
|||||||
Reference in New Issue
Block a user