'Change user password'

@api.validate(model=user_password_input_schema, description=u'Password    change    schema')
@api.response(BadRequest)
@api.response(200, u'Success', model=base_message_schema)
@api.doc(description=u'Change    user    password.    A    score    of    at    least    3    is    needed.See    https://github.com/dropbox/zxcvbn    for    details')
def put(self, session=None):

    user = current_user
    data = request.json
    try:
        change_password(username=user.name, password=data.get(u'password'), session=session)
    except WeakPassword as e:
        raise BadRequest(e.value)
    return success_response(u'Successfully    changed    user    password')
