Skip to content
Snippets Groups Projects
Commit 5fbf1456 authored by Victor Löfgren's avatar Victor Löfgren
Browse files

Remove some leftover print calls

parent c467fe68
No related branches found
No related tags found
1 merge request!161Resolve "replace-restx-with-smorest"
......@@ -98,8 +98,6 @@ class AuthLogin(MethodView):
# Otherwise if login was successful but the user is locked
if item_user.locked:
print(item_user.locked)
print(now)
# Check if locked is greater than now
if item_user.locked.timestamp() > now.timestamp():
abort(http_codes.UNAUTHORIZED, f"Kontot låst, försök igen om {item_user.locked} timmar")
......
......@@ -66,7 +66,6 @@ class Users(MethodView):
@blp.response(http_codes.OK, UserSchema)
def post(self, args):
""" Creates a new user if the user does not already exist. """
print(args)
return dbc.add.user(**args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment