(feat): Added PostgreSQL connection string encoding.
This commit is contained in:
parent
32dcace985
commit
51f154ab73
5 changed files with 45 additions and 32 deletions
|
|
@ -15,8 +15,6 @@ def signup():
|
|||
return jsonify({"message": "User created successfully", "username": new_user.username}), 201
|
||||
except ValueError as e:
|
||||
return jsonify({"message": str(e)}), 400
|
||||
|
||||
|
||||
|
||||
@auth_bp.route('/login', methods=['POST'])
|
||||
def login():
|
||||
|
|
@ -28,4 +26,4 @@ def login():
|
|||
user = user_service.verify_user(username, password)
|
||||
return jsonify({"message": "Login successful", "user_id": user.id}), 200
|
||||
except ValueError as e:
|
||||
return jsonify({"error": str(e)}), 401
|
||||
return jsonify({"error": str(e)}), 401
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue