search username
This commit is contained in:
@@ -370,7 +370,7 @@ def complete_register():
|
|||||||
if not vrl:
|
if not vrl:
|
||||||
return jsonify({'message': 'Error - missing verify link'}), 403
|
return jsonify({'message': 'Error - missing verify link'}), 403
|
||||||
try:
|
try:
|
||||||
data= jwt.decode(vrl, app.config['SECRET_KEY'], algorithms=["HS256"])
|
pending_data = jwt.decode(vrl, app.config['SECRET_KEY'], algorithms=["HS256"])
|
||||||
except:
|
except:
|
||||||
return jsonify({'status': 'INVALID', 'message': 'Link is invalid'}),403
|
return jsonify({'status': 'INVALID', 'message': 'Link is invalid'}),403
|
||||||
|
|
||||||
@@ -378,10 +378,10 @@ def complete_register():
|
|||||||
if is_validated is not True:
|
if is_validated is not True:
|
||||||
return dict(message='Invalid data', data=None, error=is_validated), 400
|
return dict(message='Invalid data', data=None, error=is_validated), 400
|
||||||
|
|
||||||
print(data)
|
print(pending_data)
|
||||||
username= data.get('username')
|
username= data['username']
|
||||||
password= data.get('password')
|
password= data['password']
|
||||||
country= data.get('country')
|
country= data['country']
|
||||||
|
|
||||||
FIND_USERNAME= f"SELECT * FROM members WHERE username::text = '{username}' "
|
FIND_USERNAME= f"SELECT * FROM members WHERE username::text = '{username}' "
|
||||||
print(FIND_USERNAME)
|
print(FIND_USERNAME)
|
||||||
|
|||||||
Reference in New Issue
Block a user