This commit is contained in:
parent
f63684d8e8
commit
64bd659c92
@ -53,7 +53,7 @@ class SignupApi(Resource):
|
||||
db.session.add(user)
|
||||
except Exception as e:
|
||||
current_app.logger.warning(e)
|
||||
abort(503, "user already exists")
|
||||
abort(401, "user already exists")
|
||||
|
||||
expires = datetime.timedelta(days=7)
|
||||
access_token = create_access_token(identity=str(user.name), expires_delta=expires)
|
||||
|
Loading…
Reference in New Issue
Block a user