Projet

Général

Profil

0001-auth_fc-is_authenticated-is-a-boolean-with-Django-2..patch

Benjamin Dauvergne, 30 octobre 2020 16:42

Télécharger (1,02 ko)

Voir les différences:

Subject: [PATCH] auth_fc: is_authenticated is a boolean with Django 2.2
 (#48158)

 src/authentic2_auth_fc/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/authentic2_auth_fc/views.py
362 362
        self.logger.debug('updating user_info %s', self.fc_account.user_info)
363 363

  
364 364
    def uniqueness_check_failed(self, request):
365
        if request.user.is_authenticated():
365
        if request.user.is_authenticated:
366 366
            # currently logged :
367 367
            if models.FcAccount.objects.filter(user=request.user, order=0).count():
368 368
                # cannot link because we are already linked to another FC account
369
-