def update_password(): """ """ params = request.json user_object = User(params=params, _id=params["_id"]) user_object.update_password() data = { "success": user_object.success, "message": user_object.message, "user": user_object.user } return jsonify(data)
def new(): """ """ params = request.json user_object = User(params=params) user_object.new() data = { "success": user_object.success, "message": user_object.message, "user": user_object.user } return jsonify(data)
def update_account(): """ """ params = request.json user_object = User(params=params, _id=params["_id"]) user_object.update_account() data = { "success": user_object.success, "message": user_object.message, "user": user_object.user } return jsonify(data)