'Returns whether the configuration which limits password reuse has been turned on'

@classmethod
def is_staff_password_reuse_restricted(cls):

    if (not settings.FEATURES['ADVANCED_SECURITY']):
        return False
    min_diff_pw = settings.ADVANCED_SECURITY_CONFIG.get('MIN_DIFFERENT_STAFF_PASSWORDS_BEFORE_REUSE', 0)
    return (min_diff_pw > 0)
