|
@@ -79,6 +79,7 @@ class formUpdatePasswordLogin(forms.Form):
|
|
|
a = None
|
|
a = None
|
|
|
d = None
|
|
d = None
|
|
|
login = self.data['cfisc']
|
|
login = self.data['cfisc']
|
|
|
|
|
+ print('login intercettato',login)
|
|
|
# 1 tentativo su codice fiscale
|
|
# 1 tentativo su codice fiscale
|
|
|
try:
|
|
try:
|
|
|
a = Utente.objects.get(codicefiscale=login.upper())
|
|
a = Utente.objects.get(codicefiscale=login.upper())
|
|
@@ -95,7 +96,8 @@ class formUpdatePasswordLogin(forms.Form):
|
|
|
d = 'a'
|
|
d = 'a'
|
|
|
except Amministratore.DoesNotExist as dne:
|
|
except Amministratore.DoesNotExist as dne:
|
|
|
print('informazione non trovata tra i login amministratotore')
|
|
print('informazione non trovata tra i login amministratotore')
|
|
|
-
|
|
|
|
|
|
|
+ except Utente.MultipleObjectsReturned as mor:
|
|
|
|
|
+ print('oggetti multipli trovati',mor)
|
|
|
if not a:
|
|
if not a:
|
|
|
raise forms.ValidationError("UUID Non Validato")
|
|
raise forms.ValidationError("UUID Non Validato")
|
|
|
else:
|
|
else:
|