o
    &zh  ã                   @   s:   d dl mZ d dlmZ d dlmZ G dd„ dejƒZdS )é    )Úforms)Úget_adapter)Úflowsc                       s(   e Zd Z‡ fdd„Z‡ fdd„Z‡  ZS )ÚGenerateRecoveryCodesFormc                    s"   |  d¡| _tƒ j|i |¤Ž d S )NÚuser)Úpopr   ÚsuperÚ__init__)ÚselfÚargsÚkwargs©Ú	__class__© ú[/var/www/html/kangema/venv/lib/python3.10/site-packages/allauth/mfa/recovery_codes/forms.pyr	      s   z"GenerateRecoveryCodesForm.__init__c                    s&   t ƒ  ¡ }t | j¡stƒ  d¡‚|S )NÚcannot_generate_recovery_codes)r   Úcleanr   Úcan_generate_recovery_codesr   r   Úvalidation_error)r
   Úcleaned_datar   r   r   r      s   
zGenerateRecoveryCodesForm.clean)Ú__name__Ú
__module__Ú__qualname__r	   r   Ú__classcell__r   r   r   r   r      s    r   N)Údjangor   Úallauth.mfa.adapterr   Ú#allauth.mfa.recovery_codes.internalr   ÚFormr   r   r   r   r   Ú<module>   s    