1👍
✅
It makes no difference if you submit your form via GET or POST.
At the end of your view (shortly before the return
), do something like:
LoginAttempt.objects.create(username=query_string, active=retorno)
where LoginAttempt
is a model saving login attempts. This is not ideal but you get the idea, can use the logging
interface instead or whatever you want to log the attempts.
PS. Your form will work perfectly fine with POST too, but obviously then you’ll need to look for your idcliente
value in request.POST
not request.GET
Source:stackexchange.com