search username

This commit is contained in:
CHIEFSOFT\ameye
2025-01-08 08:25:05 -05:00
parent 0a7565298f
commit f8173c644d
+5 -5
View File
@@ -370,7 +370,7 @@ def complete_register():
if not vrl:
return jsonify({'message': 'Error - missing verify link'}), 403
try:
data= jwt.decode(vrl, app.config['SECRET_KEY'], algorithms=["HS256"])
pending_data = jwt.decode(vrl, app.config['SECRET_KEY'], algorithms=["HS256"])
except:
return jsonify({'status': 'INVALID', 'message': 'Link is invalid'}),403
@@ -378,10 +378,10 @@ def complete_register():
if is_validated is not True:
return dict(message='Invalid data', data=None, error=is_validated), 400
print(data)
username= data.get('username')
password= data.get('password')
country= data.get('country')
print(pending_data)
username= data['username']
password= data['password']
country= data['country']
FIND_USERNAME= f"SELECT * FROM members WHERE username::text = '{username}' "
print(FIND_USERNAME)