1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 14:34:19 +00:00

eliminate print di controllo

This commit is contained in:
stefanogoldoni 2021-04-29 00:33:40 +02:00
parent 54217fc8c2
commit d6229e6438

View file

@ -17,8 +17,6 @@ def page_user_create():
{'result':'failure', 'content':'something blew up'}, else it returns {'result':'success', 'content':newUser.to_json().
"""
user = find_user(get_jwt_identity())
print(user)
print(user.isAdmin)
if not user.isAdmin:
return json_error("User is not admin. Thou are not authorized."), 403
new_user = User(email=request.json.get("email"), password=gen_password(request.json.get("password")),