mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 13:04:19 +00:00
eliminate print di controllo
This commit is contained in:
parent
54217fc8c2
commit
d6229e6438
1 changed files with 0 additions and 2 deletions
|
@ -17,8 +17,6 @@ def page_user_create():
|
||||||
{'result':'failure', 'content':'something blew up'}, else it returns {'result':'success', 'content':newUser.to_json().
|
{'result':'failure', 'content':'something blew up'}, else it returns {'result':'success', 'content':newUser.to_json().
|
||||||
"""
|
"""
|
||||||
user = find_user(get_jwt_identity())
|
user = find_user(get_jwt_identity())
|
||||||
print(user)
|
|
||||||
print(user.isAdmin)
|
|
||||||
if not user.isAdmin:
|
if not user.isAdmin:
|
||||||
return json_error("User is not admin. Thou are not authorized."), 403
|
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")),
|
new_user = User(email=request.json.get("email"), password=gen_password(request.json.get("password")),
|
||||||
|
|
Loading…
Reference in a new issue