U
    >i8                     @   sR  d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZmZmZmZmZ G dd	 d	eejZG d
d deejZG dd de	ejZG dd deejZG dd deejZG dd dejZG dd dejZG dd deejZG dd deejZG dd deejZG dd deejZG dd dejZd S )!    )BaseSignupForm)inputs)AuthenticateForm)Authenticator)GenerateRecoveryCodesForm)ActivateTOTPForm)AddWebAuthnFormAuthenticateWebAuthnFormLoginWebAuthnFormReauthenticateWebAuthnFormSignupWebAuthnFormc                   @   s   e Zd ZdS )AuthenticateInputN__name__
__module____qualname__ r   r   ?/tmp/pip-unpacked-wheel-upujnpc2/allauth/headless/mfa/inputs.pyr      s   r   c                   @   s   e Zd ZdS )ActivateTOTPInputNr   r   r   r   r   r      s   r   c                   @   s   e Zd ZdS )GenerateRecoveryCodesInputNr   r   r   r   r   r      s   r   c                   @   s   e Zd ZdS )AddWebAuthnInputNr   r   r   r   r   r      s   r   c                   @   s   e Zd ZdS )CreateWebAuthnInputNr   r   r   r   r   r       s   r   c                       s<   e Zd Zejej dZej	dddZ
 fddZ  ZS )UpdateWebAuthnInputquerysetTd   )required
max_lengthc                    s<   | d| _t j|| tjj| jtjjd| j	d _
d S )Nuserr   typeidpopr   super__init__r   objectsfilterTypeZWEBAUTHNfieldsr   selfargskwargs	__class__r   r   r%   (   s     zUpdateWebAuthnInput.__init__)r   r   r   r   ZModelChoiceFieldr   r&   noner!   Z	CharFieldnamer%   __classcell__r   r   r.   r   r   $   s   r   c                       s.   e Zd Zejej dZ fddZ	  Z
S )DeleteWebAuthnInputr   c                    s<   | d| _t j|| tjj| jtjjd| j	d _
d S )Nr   r   authenticatorsr"   r*   r.   r   r   r%   5   s     zDeleteWebAuthnInput.__init__)r   r   r   r   ZModelMultipleChoiceFieldr   r&   r0   r4   r%   r2   r   r   r.   r   r3   0   s   r3   c                   @   s   e Zd ZdS )ReauthenticateWebAuthnInputNr   r   r   r   r   r5   =   s   r5   c                   @   s   e Zd ZdS )AuthenticateWebAuthnInputNr   r   r   r   r   r6   A   s   r6   c                   @   s   e Zd ZdS )LoginWebAuthnInputNr   r   r   r   r   r7   E   s   r7   c                   @   s   e Zd ZdS )SignupWebAuthnInputNr   r   r   r   r   r8   I   s   r8   c                   @   s   e Zd ZejddZdS )
TrustInputF)r   N)r   r   r   r   ZBooleanFieldtrustr   r   r   r   r9   M   s   r9   N)Zallauth.account.formsr   Z!allauth.headless.internal.restkitr   Zallauth.mfa.base.formsr   Zallauth.mfa.modelsr   Z allauth.mfa.recovery_codes.formsr   Zallauth.mfa.totp.formsr   Zallauth.mfa.webauthn.formsr   r	   r
   r   r   ZInputr   r   r   r   r   r   r3   r5   r6   r7   r8   r9   r   r   r   r   <module>   s$   	