'Check whether a password is valid.'

@csrf_exempt
@json_validate(password=VPassword('passwd'))
def POST_check_password(self, responder, password):

    if (not (responder.has_errors('passwd', errors.SHORT_PASSWORD) or responder.has_errors('passwd', errors.BAD_PASSWORD))):
        return {}
