← Back
Editing: base_user.cpython-311.pyc
� �|�e� � � � d Z ddlZddlmZ ddlmZ ddlmZmZm Z ddl mZ ddlm Z mZ ddlmZ G d � d ej � � Z G d� dej � � ZdS ) zg This module allows importing AbstractBaseUser even when django.contrib.auth is not in INSTALLED_APPS. � N)�settings)�password_validation)�check_password�is_password_usable� make_password)�models)�get_random_string�salted_hmac)�gettext_lazyc �6 � e Zd Zed� � � Z dd�Zd� ZdS )�BaseUserManagerc � � |pd} |� � � � dd� � \ }}|dz |� � � z }n# t $ r Y nw xY w|S )zS Normalize the email address by lowercasing the domain part of it. � �@� )�strip�rsplit�lower� ValueError)�cls�email� email_name�domain_parts �?/usr/lib/python3/dist-packages/django/contrib/auth/base_user.py�normalize_emailzBaseUserManager.normalize_email s| � � ���� ;�&+�k�k�m�m�&:�&:�3��&B�&B�#�J�� ��$�{�'8�'8�':�':�:�E�E�� � � � ��D� ���� �s �+A � A�A� �7abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789c �"