diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index 4b4312d..c792174 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -390,6 +390,8 @@ def complete_register(): cursor.execute(FIND_USERNAME) user_search = cursor.fetchall() print(user_search) + if user_search[0]: + return jsonify({'status': "DUPLICATE",'message': 'Error - use another username'}), 200 user_uid = pending_data['user']['uid'] #'a4b75649-e3c5-424f-bcdb-5481e625d24b'