refactor(user): rename to toJson back
This commit is contained in:
@@ -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