From 50e3cfd8a55e2a84299d1dc8ff2cdc2bef5739b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 6 Dec 2020 02:00:09 +0100 Subject: [PATCH] 409 pls --- src/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources.py b/src/resources.py index ac9cbf8..df42084 100644 --- a/src/resources.py +++ b/src/resources.py @@ -53,7 +53,7 @@ class SignupApi(Resource): db.session.add(user) except Exception as e: current_app.logger.warning(e) - abort(401, "user already exists") + abort(409, "user already exists") expires = datetime.timedelta(days=7) access_token = create_access_token(identity=str(user.name), expires_delta=expires)