Mauro преди 11 месеца
родител
ревизия
88d370d0c8
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      login/views.py

+ 2 - 0
login/views.py

@@ -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={}