def reset_password_verification_url_check() -> bool: return implies( registration_settings.RESET_PASSWORD_VERIFICATION_ENABLED, registration_settings.RESET_PASSWORD_VERIFICATION_URL, )
def register_verification_url_check() -> bool: return implies( registration_settings.REGISTER_VERIFICATION_ENABLED, registration_settings.REGISTER_VERIFICATION_URL, )
def valid_register_email_verification_email_template_config_check() -> bool: return implies( registration_settings.REGISTER_EMAIL_VERIFICATION_ENABLED, _is_email_template_config_valid( registration_settings.REGISTER_EMAIL_VERIFICATION_EMAIL_TEMPLATES), )
def login_fields_unique_check() -> bool: return implies(_is_auth_installed(), _are_login_fields_unique)
def token_auth_installed_check() -> bool: return implies( registration_settings.LOGIN_RETRIEVE_TOKEN, 'rest_framework.authtoken' in settings.INSTALLED_APPS, )
def valid_reset_password_verification_email_template_config_check() -> bool: return implies( registration_settings.RESET_PASSWORD_VERIFICATION_ENABLED, _is_email_template_config_valid( registration_settings.RESET_PASSWORD_VERIFICATION_EMAIL_TEMPLATES), )
def token_auth_config_check() -> bool: return implies( _is_auth_installed() and registration_settings.LOGIN_RETRIEVE_TOKEN, _is_auth_token_manager_auth_class_enabled)
def token_auth_config_check() -> bool: return implies( registration_settings.LOGIN_RETRIEVE_TOKEN, any( issubclass(cls, TokenAuthentication) for cls in api_settings.DEFAULT_AUTHENTICATION_CLASSES))
def send_reset_password_link_serializer_email_unique_check() -> bool: return implies( registration_settings.SEND_RESET_PASSWORD_LINK_SERIALIZER_USE_EMAIL, _is_email_field_unique, )
def valid_auth_token_manager_class_provide_token_check() -> bool: return implies( _is_auth_installed(), partial(_is_auth_token_manager_class_implementing_method, 'provide_token'), )
def valid_auth_token_manager_class_get_authentication_class_check() -> bool: return implies( _is_auth_installed(), partial(_is_auth_token_manager_class_implementing_method, 'get_authentication_class'), )
def valid_auth_token_manager_class_proper_subclass_check() -> bool: return implies( _is_auth_installed(), _is_auth_token_manager_proper_subclass, )
def token_auth_installed_check() -> bool: return implies( _is_auth_installed() and registration_settings.LOGIN_RETRIEVE_TOKEN, _is_auth_token_manager_app_name_installed, )