409 pls
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-12-06 02:00:09 +01:00
parent 64bd659c92
commit 50e3cfd8a5

View File

@ -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)