I have a system that does:
1 - The user registers a project with name, title and responsible teacher
2 - The teacher responsible for this project must authorize it or not
So I have a page that displays to the teacher, all the projects that are
waiting for authorization and in each project there is a small form with
radio (yes / no) and a save button.
The form in django has no field that identifies a project or something, I
save directly to the project template that has an authorization field (true
or false).
How can I assign the choice of the teacher (yes or no) to the project?
Ie how to identify that this form below the project on the listing page is
from project x and not from project z?
Today this is done with a hidden field in the form that is configured in
the template with the id of the user who registered the project, but using
options to inspect elements in browsers, an attacker can change the id and
authorize other projects.
How can I prevent this?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACTnJ03kodSevdmwZRVsozucmqZQ5aJ4oLCTuhgecqjipXuxVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to