o
    úLf  ã                   @   s   d dl Z dZdd„ ZdS )é    NÚaccount_authentication_methodsc                 K   s8   | j  tg ¡}|t ¡ dœ|¥}| |¡ || j t< dS )ai  Here we keep a log of all authentication methods used within the current
    session.  Important to note is that having entries here does not imply that
    a user is fully signed in. For example, consider a case where a user
    authenticates using a password, but fails to complete the 2FA challenge.
    Or, a user successfully signs in into an inactive account or one that still
    needs verification. In such cases, ``request.user`` is still anonymous, yet,
    we do have an entry here.

    Example data::

        {'method': 'password',
         'at': 1701423602.7184925,
         'username': 'john.doe'}

        {'method': 'socialaccount',
         'at': 1701423567.6368647,
         'provider': 'amazon',
         'uid': 'amzn1.account.K2LI23KL2LK2'}

        {'method': 'mfa',
         'at': 1701423602.6392953,
         'id': 1,
         'type': 'totp'}

    )ÚmethodÚatN)ÚsessionÚgetÚ"AUTHENTICATION_METHODS_SESSION_KEYÚtimeÚappend)Úrequestr   Ú
extra_dataÚmethodsÚdata© r   ú_/var/www/html/humari/django-venv/lib/python3.10/site-packages/allauth/account/authentication.pyÚrecord_authentication   s   þý
r   )r   r   r   r   r   r   r   Ú<module>   s    