From 1acb17b3afcad00c09b01afcf01c5bf5edbc9d1c Mon Sep 17 00:00:00 2001 From: Parker Date: Fri, 20 Sep 2024 18:07:03 -0500 Subject: [PATCH] Don't explicitly say the username is in use --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 2556aeb..5672807 100644 --- a/app/main.py +++ b/app/main.py @@ -82,7 +82,7 @@ def signup(): user = db.query(User).filter(User.username == username).first() if user: db.close() - return {"status": "User already exists"} + return {"status": "Username not available"} # Add information to the database hashed_password = bcrypt.hashpw( password.encode("utf-8"), bcrypt.gensalt()