o
    "4g9                     @   sl   d dl mZ d dlmZ G dd deZG dd deZG dd deZG d	d
 d
eZG dd deZdS )    )get_adapter)APIResponsec                          e Zd Z fddZ  ZS ) RequestEmailVerificationResponsec                    s   t  j||rdndd d S )N   i  )statussuper__init__)selfrequestverification_sent	__class__ j/var/www/html/authentication-server/venv/lib/python3.10/site-packages/allauth/headless/account/response.pyr
      s   z)RequestEmailVerificationResponse.__init____name__
__module____qualname__r
   __classcell__r   r   r   r   r          r   c                       r   )VerifyEmailResponsec                    s@   t  }|jj||jjd}d|d ui}t j|||d d S )N)emailuseris_authenticating)datameta)r   email_addressr   serialize_userr   r	   r
   )r   r   verificationstageadapterr   r   r   r   r   r
      s   zVerifyEmailResponse.__init__r   r   r   r   r   r   
   r   r   c                       r   )EmailAddressesResponsec                    s"   dd |D }t  j||d d S )Nc                 S   s   g | ]}|j |j|jd qS )r   verifiedprimaryr$   ).0addrr   r   r   
<listcomp>   s    z3EmailAddressesResponse.__init__.<locals>.<listcomp>r   r   )r   r   email_addressesr   r   r   r   r
      s   zEmailAddressesResponse.__init__r   r   r   r   r   r#      r   r#   c                   @   s   e Zd ZdS )RequestPasswordResponseN)r   r   r   r   r   r   r   r,   $   s    r,   c                       r   )PasswordResetKeyResponsec                    s(   t  }d||i}t j||d d S )Nr   r*   )r   r   r	   r
   )r   r   r   r"   r   r   r   r   r
   )   s   z!PasswordResetKeyResponse.__init__r   r   r   r   r   r-   (   r   r-   N)	allauth.headless.adapterr   allauth.headless.base.responser   r   r   r#   r,   r-   r   r   r   r   <module>   s    