Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
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)