|
|
@@ -128,6 +128,8 @@ def start(request):
|
|
|
return HttpResponseRedirect(reverse("azienda:welcome"))
|
|
|
else:
|
|
|
print('Errore: amministratore non valido')
|
|
|
+ if a.azienda.cambiopassword and a.sede.cambiopassword and a.cambiopassword:
|
|
|
+ print("all'utente e' richiesto di cambiare la password al primo accesso")
|
|
|
return HttpResponseRedirect(reverse("login:start"))
|
|
|
else:
|
|
|
temp={}
|