Projet

Général

Profil

Bug #8113

Restes des morceaux de identification_token

Ajouté par Frédéric Péters il y a plus de 8 ans. Mis à jour il y a plus de 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
25 août 2015
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Dans #7824 on a supprimé les histoires de jeton d'identification mais il en reste quelques morceaux.

Exception:
  type = '<type 'exceptions.AttributeError'>', value = ''SqlUser' object has no attribute 'identification_token''

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/qommon/ident/idp.py", line 1066, in token
  1064         r += htmltext('<h2>%s</h2>') % _('Email with Identification Token')
  1065
> 1066         if not self.user.identification_token:
  1067             token = '-'.join(['%04d' % random.randint(1, 9999) for x in range(4)])
  1068             self.user.identification_token = str(token)

Fichiers

Révisions associées

Révision 6da1ab4f (diff)
Ajouté par Frédéric Péters il y a plus de 8 ans

misc: remove leftover traces of identification_token (#8113)

Historique

#1

Mis à jour par Frédéric Péters il y a plus de 8 ans

#2

Mis à jour par Benjamin Dauvergne il y a plus de 8 ans

Ack mais il reste des bouts (pas gênants car dépendant de la méthode token() enlevés dans ident/idp.py ) aussi dans wcs/qommon/saml2.py:

wcs/qommon/saml2.py:            users_with_token = list(UserClass.get_users_with_identification_token(token))
#4

Mis à jour par Thomas Noël il y a plus de 8 ans

Ack

#5

Mis à jour par Frédéric Péters il y a plus de 8 ans

  • Statut changé de En cours à Résolu (à déployer)
commit 6da1ab4f20993278e55a6d94dc9edbca7a5f6cad
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Aug 25 15:06:17 2015 +0200

    misc: remove leftover traces of identification_token (#8113)
#6

Mis à jour par Thomas Noël il y a plus de 8 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF