refactor(user): rename to toJson back
This commit is contained in:
1 parent
67c06a0203
commit
4ad7869e27
2 files changed
+2
-2
No files matched your search
@@ -22,7 +22,7 @@ def login():
|
||||
return "Password is too short", 400
|
||||
|
||||
user = User(email, password)
|
||||
return jsonify(user.toDictionary())
|
||||
return jsonify(user.toJson())
|
||||
|
||||
else:
|
||||
return "Request is not a json", 400
|
||||
Reference in new issue
Block a user