File manager - Edit - /usr/local/CyberPanel/lib/python3.10/site-packages/django/contrib/auth/handlers/__pycache__/modwsgi.cpython-310.pyc
Back
o �h� � @ s4 d dl mZ d dlmZ e�� Zdd� Zdd� ZdS )� )�db)�authc C sn t �� z-ztj�|�}W n tjy Y W t �� dS w |js(W t �� dS |�|�W t �� S t �� w )z� Authenticate against Django's auth database. mod_wsgi docs specify None, True, False as return value depending on whether the user exists and authenticates. N) r � reset_queries� UserModel�_default_manager�get_by_natural_key�DoesNotExist�close_old_connections� is_active�check_password)�environ�username�password�user� r �Z/usr/local/CyberPanel/lib/python3.10/site-packages/django/contrib/auth/handlers/modwsgi.pyr s � �r c C sz t �� z3ztj�|�}W n tjy g Y W t �� S w |js)g W t �� S dd� |j� � D �W t �� S t �� w )z* Authorize a user based on groups c S s g | ]}|j �� �qS r )�name�encode)�.0�groupr r r � <listcomp>) s z#groups_for_user.<locals>.<listcomp>) r r r r r r r r �groups�all)r r r r r r �groups_for_user s � �r N)�djangor �django.contribr �get_user_modelr r r r r r r �<module> s
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings