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