https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/django/contrib/auth/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/django/contrib/auth/backends.pyc
�
r�\c@s`ddlmZddlmZddlmZdefd��YZdefd��YZdS(	i����(tunicode_literals(tget_user_model(t
PermissiontModelBackendcBsSeZdZddd�Zdd�Zdd�Zdd�Zd�Zd�Z	RS(u9
    Authenticates against settings.AUTH_USER_MODEL.
    cKs~t�}|dkr*|j|j�}ny)|jj|�}|j|�rR|SWn$|jk
ry|�j|�nXdS(N(	RtNonetgettUSERNAME_FIELDt_default_managertget_by_natural_keytcheck_passwordtDoesNotExisttset_password(tselftusernametpasswordtkwargst	UserModeltuser((s>/tmp/pip-install-XxeQeY/django/django/contrib/auth/backends.pytauthenticates	cCs�|j�s|dk	rt�St|d�s�|jrItjj�}n>t�j	j
d�}d|j�}tjji||6�}|j
dd�j�}tg|D]\}}d||f^q��|_n|jS(uh
        Returns a set of permission strings that this user has through his/her
        groups.
        u_group_perm_cacheugroupsu	group__%sucontent_type__app_labelucodenameu%s.%sN(tis_anonymousRtsetthasattrtis_superuserRtobjectstallRt_metat	get_fieldtrelated_query_nametfiltertvalues_listtorder_byt_group_perm_cache(Rtuser_objtobjtpermstuser_groups_fieldtuser_groups_querytcttname((s>/tmp/pip-install-XxeQeY/django/django/contrib/auth/backends.pytget_group_permissionss	5cCs�|j�s|dk	rt�St|d�s�tg|jj�D]}d|jj|jf^qA�|_	|j	j
|j|��n|j	S(Nu_perm_cacheu%s.%s(RRRRtuser_permissionstselect_relatedtcontent_typet	app_labeltcodenamet_perm_cachetupdateR'(RR R!tp((s>/tmp/pip-install-XxeQeY/django/django/contrib/auth/backends.pytget_all_permissions*s>cCs#|js
tS||j||�kS(N(t	is_activetFalseR0(RR tpermR!((s>/tmp/pip-install-XxeQeY/django/django/contrib/auth/backends.pythas_perm2s	cCsH|js
tSx4|j|�D]#}||jd� |krtSqWtS(uV
        Returns True if user_obj has any permissions in the given app_label.
        u.(R1R2R0tindextTrue(RR R+R3((s>/tmp/pip-install-XxeQeY/django/django/contrib/auth/backends.pythas_module_perms7s	cCs<t�}y|jjd|�SWn|jk
r7dSXdS(Ntpk(RRRR
R(Rtuser_idR((s>/tmp/pip-install-XxeQeY/django/django/contrib/auth/backends.pytget_userBs
	N(
t__name__t
__module__t__doc__RRR'R0R4R7R:(((s>/tmp/pip-install-XxeQeY/django/django/contrib/auth/backends.pyRs
	tRemoteUserBackendcBs/eZdZeZd�Zd�Zd�ZRS(u�
    This backend is to be used in conjunction with the ``RemoteUserMiddleware``
    found in the middleware module of this package, and is used when the server
    is handling authentication outside of Django.

    By default, the ``authenticate`` method creates ``User`` objects for
    usernames that don't already exist in the database.  Subclasses can disable
    this behavior by setting the ``create_unknown_user`` attribute to
    ``False``.
    cCs�|s
dSd}|j|�}t�}|jrn|jji||j6�\}}|r�|j|�}q�n-y|jj|�}Wn|j	k
r�nX|S(u�
        The username passed as ``remote_user`` is considered trusted.  This
        method simply returns the ``User`` object with the given username,
        creating a new ``User`` object if ``create_unknown_user`` is ``True``.

        Returns None if ``create_unknown_user`` is ``False`` and a ``User``
        object with the given username is not found in the database.
        N(
Rtclean_usernameRtcreate_unknown_userRt
get_or_createRtconfigure_userRR
(Rtremote_userRR
Rtcreated((s>/tmp/pip-install-XxeQeY/django/django/contrib/auth/backends.pyRYs			cCs|S(u�
        Performs any cleaning on the "username" prior to using it to get or
        create the user object.  Returns the cleaned username.

        By default, returns the username unchanged.
        ((RR
((s>/tmp/pip-install-XxeQeY/django/django/contrib/auth/backends.pyR?yscCs|S(u�
        Configures a user after creation and returns the updated user.

        By default, returns the user unmodified.
        ((RR((s>/tmp/pip-install-XxeQeY/django/django/contrib/auth/backends.pyRB�s(R;R<R=R6R@RR?RB(((s>/tmp/pip-install-XxeQeY/django/django/contrib/auth/backends.pyR>Js

	 		N(	t
__future__Rtdjango.contrib.authRtdjango.contrib.auth.modelsRtobjectRR>(((s>/tmp/pip-install-XxeQeY/django/django/contrib/auth/backends.pyt<module>sD

https://t.me/AnonymousX5 - 2025